-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
npx create-react-app fails Must use import to load ES Module #8897
Comments
learning react for the first time today, im having the same issue |
I have this problem too: ~ took 7s ~ took 4s My SO:
|
same issue today 25 april |
same, pipeline builds started failing today all of a sudden due to this |
Same issue, tried cleaning the npm cache, uninstalling and installing node, the recommended and the LTS version, and deleting the "type": "module" line on the file provided on the instructions and nothing works. I tried it with npx and the create-react-app command installed globally and it doesn't work. |
For maintainers: see then/is-promise#13 for more details. |
same issue today 25 april, i tried the install npm install - g create-react-app and it doesn't work Error [ERR_INVALID_PACKAGE_TARGET]: Invalid "exports" main target "index.js" defined in the package config /C:/Users/marlo/AppData/Roaming/npm/node_modules/create-react-app/node_modules/is-promise\package.json |
Known bug, a dependency is broken, see #8896 (comment) for workaround. |
Issue is fixed by I am on Ubuntu 20.04 and this is what worked for me.
|
Describe the bug
npx create-react-app test --use-npm --template typescript
failes with following errorIf I try to install with
yarn create react-app test --template typescript
then I get following errorDid you try recovering your dependencies?
npm v 16.14.4
yarn v 1.22.4
Which terms did you search for in User Guide?
I searched exactly npx create-react-app not workin saw few old github issues.
Environment
Invalid "exports" main target "index.js" defined in the package config /home/apoorvmote/.config/yarn/global/node_modules/is-promise/package.json
Steps to reproduce
brew install node@12
npx create-react-app test --use-npm --template typescript
yarn create react-app test --template typescript
Expected behavior
I literally created new react project today morning and deployed to production. I don't know why suddenly its not working anymore.
It doesn't work in
Ubuntu 18.04
,Ubuntu 20.04
andWindows 10 Pro
. Both Ubuntu running on WSL 2Actual behavior
The error from windows 10 pro
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
npx create-react-app test --use-npm --template typescript
yarn create react-app test --template typescript
The text was updated successfully, but these errors were encountered: