-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Build Failures with TypeScript's noUnusedLocals Compiler Option #160
Comments
Did you have |
No, i did't install |
Please take a look at the screenshot related to the project I’m currently working on. There were multiple import errors initially flagged as 'not found.' However, after disabling the |
No idea why checking types from |
@userquin Here is a minimum reproduction of my case where multiple import errors were initially flagged as 'not found. Minimum Reproduction: https://stackblitz.com/edit/github-yp7irr?file=package.json I used to register the service worker through the plugins folder. Steps:
|
@userquin Node_module is excluded in tsconfig.json, but somehow it still checks all |
@userquin After running
I found these lines in
In
In general, the default character we use is either
Could you please check if it should be |
It should be |
@userquin Can you please investigate why this issue is occurring based on its reproduction (https://stackblitz.com/edit/github-yp7irr?file=package.json)? |
It is fine on my local, using node 20.10.0. |
can you update vue to "devDependencies": {
"@vite-pwa/nuxt": "0.10.5",
"nuxt": "3.13.1",
"typescript": "5.5.4",
"vue": "^3.5.3",
"vue-tsc": "2.1.6"
},
"resolutions": {
"vue": "3.5.3"
} I also change the Running works:
|
@userquin, thank you for your response. Everything is running fine now. |
In Nuxt.js project that uses TypeScript, enabling the noUnusedLocals option in tsconfig.json causes the build to fail.
Screenshot:

Minimum Reproduction: https://stackblitz.com/edit/github-zjpmae?file=package.json
Steps:
npm i
npm run test
The text was updated successfully, but these errors were encountered: