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
[Bug] Webpack: False alerts with TypeScript >= 4.9 #814
Comments
I believe the real problem is that |
Duplicate of #768 |
@jtbandes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
False alerts
Following webpack loaders are false alerts (btw. all loaders, i use):
And the following polyfills:
Additional false alerts due to this bug
Since depcheck is not able to parse my
webpack.config.ts
due to the bug, i get the following additional false alerts:copy-webpack-plugin
fork-ts-checker-webpack-plugin
html-webpack-plugin
mustache
@types/mustache
office-addin-dev-certs
tsconfig-paths-webpack-plugin
@types/webpack
webpack-dev-server
@types/node
crypto-browserify
stream-browserify
The bug
TypeScript 4.9 introduced the
satisfies
operator, using it in mywebpack.config.ts
:depcheck --specials=babel,bin,eslint,prettier,webpack --json
says:The error message
SyntaxError: Missing semicolon.
at something like... } satisfies ... ;
is typical for using old Typescript < 4.9 compilers:depcheck/package.json
Line 104 in 4b23f8b
An version override for typescript in my
package.json
:Does of course not help, since
depcheck
is already compiled before distributed.Possible fix
Change in the
package.json
ofdepcheck
:The text was updated successfully, but these errors were encountered: