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
For more info on the entire issue and how emitDecoratorMetadata see the entire issue: microsoft/TypeScript#18008
Steps to reproduce
Create a TypeScript class in Nuxt.js that is decorated with a TS decorator & with emitDecoratorMetadata turned on, and have one of the constructor params be one of the types exported from @nuxt/types.
What is Expected?
The code should compile.
What is actually happening?
Since emitDecoratorMetadata: true leaves the import of @nuxt/types in JavaScript in the compiled build, webpack throws an error about not being able to resolve @nuxt/types, because the package doesn't have an index.js file.
The text was updated successfully, but these errors were encountered:
Versions
Reproduction
No reproduction, but I've shown an example and explained it here: microsoft/TypeScript#18008 (comment)
For more info on the entire issue and how emitDecoratorMetadata see the entire issue: microsoft/TypeScript#18008
Steps to reproduce
Create a TypeScript class in Nuxt.js that is decorated with a TS decorator & with emitDecoratorMetadata turned on, and have one of the constructor params be one of the types exported from
@nuxt/types
.What is Expected?
The code should compile.
What is actually happening?
Since emitDecoratorMetadata: true leaves the import of
@nuxt/types
in JavaScript in the compiled build, webpack throws an error about not being able to resolve@nuxt/types
, because the package doesn't have an index.js file.The text was updated successfully, but these errors were encountered: