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

Missing dependency in react-dev-utils #6400

Closed
elevatebart opened this issue Feb 11, 2019 · 5 comments
Closed

Missing dependency in react-dev-utils #6400

elevatebart opened this issue Feb 11, 2019 · 5 comments

Comments

@elevatebart
Copy link

Is this a bug report?

Yes

In react-dev-utils, there is an extraneous dependency.

In file packages/react-dev-utils/WebpackDevServerUtils.js the package fork-ts-checker-webpack-plugin is required without being in the dependencies.

Did you try recovering your dependencies?

yes

Which terms did you search for in User Guide?

Environment

Error: Cannot find module 'fork-ts-checker-webpack-plugin'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/jessicasachs/projects/bird/node_modules/react-dev-utils/WebpackDevServerUtils.js:21:36)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/jessicasachs/projects/bird/node_modules/vue-styleguidist/scripts/binutils.js:7:31)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)

Steps to Reproduce

(Write your steps here:)

  1. launch vue-styleguidist

Expected Behavior

Not fail

Actual Behavior

fork-ts-checker-webpack-plugin found

Reproducible Demo

vue-styleguidist/vue-styleguidist#270

@ghost
Copy link

ghost commented Feb 11, 2019

Got the same error:
Error: Cannot find module 'fork-ts-checker-webpack-plugin' at node_modules/react-dev-utils/WebpackDevServerUtils.js:21:36. I don't use typescript and don't wanna install it.

@elevatebart
Copy link
Author

@piotr-cz
Copy link
Contributor

Possible fix: #6395

@leonardoampuero
Copy link

leonardoampuero commented Feb 11, 2019

I had to add this to my package.json to make it work
"devDependencies": { "fork-ts-checker-webpack-plugin": "0.5.2", "typescript": "3.3.3" },

@ianschmitz
Copy link
Contributor

ianschmitz commented Feb 11, 2019

We decided to revert #5903 to fix react-dev-utils for downstream consumers. This will give us a bit of time to figure out the best solution for how to consume the fork-ts-checker-webpack-plugin dependency.

2.1.5 is now available

@lock lock bot locked and limited conversation to collaborators Feb 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants