Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile typescript file throw error could not load typescript compiler with NPM package name #622

Closed
restuwahyu13 opened this issue Dec 7, 2020 · 2 comments

Comments

@restuwahyu13
Copy link
Contributor

restuwahyu13 commented Dec 7, 2020

when I do ncc build an error appears like the following, is the problem related to the error below. thank you

ncc: Version 0.25.1
ncc: Compiling file index.js
Error: Module build failed (from ./node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js):
Error: Could not load TypeScript compiler with NPM package name C:\Users\noname\Desktop\test\node_modules\@vercel\ncc\dist\ncc/typescript.js. Are you sure it is correctly installed?

@restuwahyu13
Copy link
Contributor Author

restuwahyu13 commented Dec 7, 2020

solved this issue, must be add typescript using npm link typescript or install to devDependencies

@PatrickAlphaC
Copy link

This did not solve it for me, I am seeing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants