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

[Bug] Module Not Found on Create-React-App #958

Closed
1 task
frencojobs opened this issue Feb 16, 2020 · 1 comment · Fixed by facebook/create-react-app#8509
Closed
1 task

[Bug] Module Not Found on Create-React-App #958

frencojobs opened this issue Feb 16, 2020 · 1 comment · Fixed by facebook/create-react-app#8509
Labels
bug Something isn't working

Comments

@frencojobs
Copy link

frencojobs commented Feb 16, 2020

  • I'd be willing to implement a fix

Describe the bug

I was working on a create-react-app project, and I had to install a package and so I did. It was working as expected, but when I tried to use the package I installed in my code, this error appeared.

./src/App.js
Module not found: Something that got detected as your top-level application (because it doesn't seem to belong to any package) tried to access a package that is not declared in your dependencies

To fix this, I had to restart the building process, which is bad when I am expecting for a hot-reload.

To Reproduce

yarn dlx create-react-app cra
cd cra
yarn start
# without interrupting the process, on another tab
yarn add random
yarn install
# try to consume the random package

Environment if relevant (please complete the following information):

  • OS: Linux
  • Node version 12.14.0
  • Yarn version 2.0.0-rc.27
@arcanis
Copy link
Member

arcanis commented Feb 18, 2020

Will be fixed with facebook/create-react-app#8509 ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants