question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ts-loader dependency

See original GitHub issue

Hi!

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:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

4reactions
filipsobolcommented, Nov 6, 2020

I had this issue because I used different version of typescript than this package.

0reactions
windx-foobarcommented, Oct 13, 2022

I had this issue because I used different version of typescript than this package.

Thank you very much. You save my life, man ^^

Read more comments on GitHub >

github_iconTop Results From Across the Web

ts-loader - npm
Start using ts-loader in your project by running `npm i ts-loader`. ... between different dependencies in your application will be lost.
Read more >
how to specify typescript version to ts-loader? - Stack Overflow
I have added to my package dependency typescript ^2.6.2, but ts-loader still shows typescript 2.5.3, because "react-scripts-ts" has a ...
Read more >
TypeScript - webpack
In this guide we will learn how to integrate TypeScript with webpack. Basic Setup. First install the TypeScript compiler and loader by running:...
Read more >
ts-loader versions and peer dependencies
Online Peer dependency version tool to search for compatible versions of related NPM packages.
Read more >
awesome-typescript-loader - npm package - Snyk
All security vulnerabilities belong to production dependencies of direct and indirect packages. License: MIT. Security Policy: No.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found