bulletproof-react icon indicating copy to clipboard operation
bulletproof-react copied to clipboard

babel-loader dependency issue

Open andreycruz16 opened this issue 4 years ago • 4 comments

Windows Env: npm: 8.4.1 node: 17.5.0

Steps to reproduce:

  1. npm install
  2. npm start

image

andreycruz16 avatar Feb 27 '22 04:02 andreycruz16

I am planning to update the setup to CRA v5 or Vite.js at some point.

Until then, you can try to bypass the error by adding SKIP_PREFLIGHT_CHECK=TRUE to your .env file as suggested in order to make it work.

alan2207 avatar Feb 27 '22 21:02 alan2207

Hi! @alan2207 I am also having the same issue. I setup the SKIP_PREFLIGHT_CHECK=true in .env file however I am getting types error. How can I resolve this issue? Screenshot 2022-09-24 at 18 13 38

NOI-lgtm avatar Sep 24 '22 16:09 NOI-lgtm

I wanted to mention that you guys need to use yarn install instead of npm install

ThePiyushAggarwal avatar Dec 12 '22 19:12 ThePiyushAggarwal

@andreycruz16

I agree to what @ThePiyushAggarwal mentioned, you should use yarn instead of npm for this project and I didn't have .env var SKIP_PREFLIGHT_CHECK

My two cents on this, I was also facing the same issue, then I see one of the log messages during this process is exactly this ../../../package.json having no license field. I was like..... wait whattttt ? if I am running yarn start from root dir in this project why app is finding package.json 3 levels above ? then when I looked into my directories, I found I have node_modules, package.json, yarn.lock. I deleted them and performed these steps again.

  1. rm -rf node_modules yarn.lock
  2. yarn install
  3. yarn start

I could overcome the issue. However, I am still unable to run app successfully, its related to another issues on this project, looking into it.

SatyaAchanta avatar Dec 25 '22 21:12 SatyaAchanta