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
Error TS6133: '$props' | '$setup' | '$options' is declared but its value is never read #4668
Comments
I didn't reproduce your problem. |
I also don't know how to reproduce this. This issue is not actionable without a runnable reproduction. Please provide one or we will have to close the issue. Mentioning how you upgraded ts-loder to v9, which requires webpack 5, while ts-loader works with webpack 4, I'd suspect you simply have incompatible dependencies here. |
My appologies for omitting the reproduction link. I have created an error reproduction repo and updated my initial post. |
I just run that command in your repo and got 0 errors, just:
|
ah, Interesting.
This is super weird, but I'd guess and say it's somehow related to |
@LinusBorg oh, I haven't noticed this strange behavior... Since the problem emerged when I upgraded my node modules (including |
It seems that this issue is not related to laravel-mix. I copy from laravel-mix/laravel-mix#3110 (comment)
For the time being I have disabled the Could you please suggest in which direction should I look for the solution because I feel a little bit lost here... |
Ah, so it is a problem with Vue's codegen in the sense that it generates unused parameters sometimes - which previously wasn't an issue as the generated render function wasn't actually typechecked, but vue-tsc now does that. so there's little for you to do, we'll have to research if/how we can improve this. |
Also ran into this. Also noticed that it's not entirely deterministic. Removing the output directory and doing a fresh build seems to reliably trigger it for me. A simple fix might be to unconditionally prefix these parameters with an underscore in the generated code: |
Kinda reviving this each year but it is still an issue which defeats the point of graying out unused variables. |
Version
3.2.16
Node version: 16.6.2
NPM version: 7.20.3
Webpack version 5.53.0
Reproduction link
https://github.com/iraklisg/vue-typescript
Steps to reproduce
I have the following SFC
When I try to build my app I am getting the following errors
My
tsconfig
file is the followingBefore upgrading to vue 3.2.16 and ts-loader 9.2 I was able to build my app without problems using this tsconfig
After upgrading I can suppress the errors by setting the
noUnusedParameters
option tofalse
but I don't feel that this should be the solutionWhat is expected?
To build the app without errors
What is actually happening?
app is build with TS lint errors
The text was updated successfully, but these errors were encountered: