ts-loader dependency
See original GitHub issueHi!
I just migrated my nuxt 2.8 to 2.9 typescript build with the help of your guide. I installed the runtime as well, since I’m using nuxt.config.ts
.
After reload, I got the following error: Module not found: Error: Can't resolve 'ts-loader'
.
The guide states the text below, so my guess was that ts-node was handled by the @nuxt/typescript-runtime
package as a dependency.
The wrapper is a binary named nuxt-ts that registers ts-node behind the scenes before running.
I did a clean build to test, and the error remains. After I did a yarn add ts-loader
, everything was working as it should.
So shouldn’t ts-loader
be added as a depdendency of the @nuxt/typescript-runtime
? Or should the guide be altered stating don’t forget to install ts-node as well? Or should I have had it on 2.8 already, so that’s the reason its not mentioned?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top GitHub Comments
I had this issue because I used different version of
typescript
than this package.Thank you very much. You save my life, man ^^