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 module '~/node_modules/babel-loader/lib/index.js' when run build! #1057

Open
Osama-you opened this issue Apr 26, 2021 · 5 comments

Comments

@Osama-you
Copy link

Osama-you commented Apr 26, 2021

Bug Report

Describe the Bug

There is an error showing during the build

How to Reproduce

I just follow the installation guide

git clone https://github.com/wellyshen/react-cool-starter.git
cd react-cool-starter
yarn
yarn build

Screenshots

image

My Environment

  • OS: Windows
  • Browser: Chrome
  • Node version: v14.15.4
  • App version: v4.3.4
@wellyshen
Copy link
Owner

wellyshen commented Apr 26, 2021

@Osama-you Please follow the bug template to provide your environment.

@Osama-you
Copy link
Author

@Osama-you Please follow the bug template to provide your environment.

ok, I edited it

@wellyshen
Copy link
Owner

wellyshen commented Apr 26, 2021

@Osama-you Please ensure all the node modules have been installed successfully, especially the babel-loader v8 with related @babel dependencies as v7.

@Osama-you
Copy link
Author

@wellyshen It is installed, also I deleted node_modules and yarn.lock and reinstalled again


image
image

@wellyshen
Copy link
Owner

wellyshen commented Apr 27, 2021

@Osama-you I can't reproduce this issue on my MacOS. I think it might be an environment issue. I will try it on Windows to see if I can reproduce it or not. Let's leave this issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants