Open
Description
I followed the recommended way of extending "react-scripts" build procedure:
https://create-react-app.dev/docs/alternatives-to-ejecting/
It turns out that there is something wrong in the main branch, because I can't build my project. I receive an error about wrong babel plugin import. No code changes are made by side.
Steps to reproduce:
- Fork create-react-app repository
- Go to: packages/react-scripts
- publish this as an NPM package
- Install this package as your "react-scripts" module in your CRA project
- Try to build the project
Activity
nelson360 commentedon Dec 6, 2021
creating react app youll have to install npm and visual studio
run
@@@
npx create-react-app my-app
cd my-app
npm start
@@
after successful visual studio download
marioil commentedon Dec 6, 2021
Not sure what exactly you want to say here. Do you want to be more descriptive?
nelson360 commentedon Dec 7, 2021
https://www.youtube.com/watch?v=-ERWlp828kY follow this instructions
marioil commentedon Dec 8, 2021
I don't think you understood the actual problem. I need to extend the react-scripts build procedure. In order to modify/add additional steps in the React build you can either eject the entire project or fork the react-scripts repository and do the modifications there. This is what I'm doing for two years already and everything is working great. From time to time I rebase my custom "react-scripts" repository with the upstream in order to be up to date. And now, two years later after rebase, my "build" is not working. After some investigation I found out that the official "main" branch has issues which are nothing to do with me. This is why I report that there is a problem and it's actually easy to reproduce.
stale commentedon Jan 8, 2022
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
sabarnix commentedon May 9, 2022
I am trying to do the same thing and facing the exact issue.
The
postinstall
script inpackage.json
does not exist which breaks after npm install or lerna bootstrap. Also, in lerna.json the npm client set is yarn but theyarn.lock
file is missing.13 remaining items