wellyshen / react-cool-starter

😎 🐣 A starter boilerplate for a universal web app with the best development experience and a focus on performance and best practices.
MIT License
1.31k stars 242 forks source link

Cannot find module '~/node_modules/babel-loader/lib/index.js' when run build! #1057

Open Osama-you opened 3 years ago

Osama-you commented 3 years ago

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

wellyshen commented 3 years ago

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

Osama-you commented 3 years ago

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

ok, I edited it

wellyshen commented 3 years ago

@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 commented 3 years ago

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

wellyshen commented 3 years ago

@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.