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

typescript error in node_modules #914

Closed
HamidTanhaei opened this issue Feb 5, 2019 · 2 comments
Closed

typescript error in node_modules #914

HamidTanhaei opened this issue Feb 5, 2019 · 2 comments

Comments

@HamidTanhaei
Copy link

i'm using razzle typescript. and i get error from node_modules by typescript.
sample error:

ERROR in /home/hamid/my/www/with-typescript/node_modules/@types/react-redux/index.d.ts(118,29):
TS2370: A rest parameter must be of an array type.

I have tried to change tsconfig.json configs to exclude node_module files but it was not successful.
how can i disable it forever?

@jaredpalmer
Copy link
Owner

This is not a Razzle issue but a TypeScript one.

@HamidTanhaei
Copy link
Author

according to an issue in fork-ts-checker-webpack-plugin package i solved this problem by this reply:
TypeStrong/fork-ts-checker-webpack-plugin#128 (comment)

unfortunately, lots of packages have problems in their typescript and possible to you get them as errors and stops you from building razzle.

I say this for anybody has this problem
add "skipLibCheck": true in compilerOptions in tsconfig.json in your project's root.

@jaredpalmer I can open a pull request for default examples in the master branch.

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