You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My interfaces are coming from separate file, lets say:
ts/interfaces/foo.ts
with a content of
export default interface Foo {
...
};
and I imported that on my store like:
import Foo from '~/ts/interfaces/foo.ts';
Everytime I saved my store, the webpack recompiles, but when I saved foo.ts, it does not. I expected it to recompile just like when importing a .js file.
But when I stop & start npm run dev, it now reads the changes of foo.ts, so I mean, it only checks it once... only when it started.. if you change it while running/watching, it doesn't detect it.
I already tried looking on default NuxtJS webpack config but can't find a clue where to add .ts in the config or where did I go wrong? what do I miss?
The text was updated successfully, but these errors were encountered:
Hey @rmondesilva have you seen these tickets? nuxt/nuxt#1819 nuxt/nuxt#4301
Maybe it will help you with your problem. Or did you already find out how to solve it?
My interfaces are coming from separate file, lets say:
ts/interfaces/foo.ts
with a content of
and I imported that on my store like:
import Foo from '~/ts/interfaces/foo.ts';
Everytime I saved my store, the webpack recompiles, but when I saved
foo.ts
, it does not. I expected it to recompile just like when importing a.js
file.But when I stop & start
npm run dev
, it now reads the changes offoo.ts
, so I mean, it only checks it once... only when it started.. if you change it while running/watching, it doesn't detect it.I already tried looking on default NuxtJS webpack config but can't find a clue where to add
.ts
in the config or where did I go wrong? what do I miss?The text was updated successfully, but these errors were encountered: