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

Cannot find type definition file for 'webpack-dev-server' @5.1.0 #143

Closed
byuji opened this issue Aug 4, 2020 · 1 comment
Closed

Cannot find type definition file for 'webpack-dev-server' @5.1.0 #143

byuji opened this issue Aug 4, 2020 · 1 comment

Comments

@byuji
Copy link

byuji commented Aug 4, 2020

After upgrading from 5.0.8 to 5.1.0 I got the following error:

$ tsc --noEmit
node_modules/webpack-merge/dist/index.d.ts:1:23 - error TS2688: Cannot find type definition file for 'webpack-dev-server'.

1 /// <reference types="webpack-dev-server" />
                        ~~~~~~~~~~~~~~~~~~


Found 1 error.

I reverted and it works fine. Running yarn add @types/webpack-dev-server --dev also fixes it.

Node version is v10.19.0, using macOS v10.15.6

@bebraw bebraw closed this as completed in b762ff4 Aug 4, 2020
@bebraw
Copy link
Member

bebraw commented Aug 4, 2020

Thanks for the heads up. It should work without now. I'm not exactly sure how the build picked up the reference since there's no dependency on the type.

I made sure the development dependencies are up to date and now the result seems to be what's expected.

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