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

v2.2.0 issue with npx create-react-app #14

Closed
xfer opened this issue Apr 25, 2020 · 14 comments
Closed

v2.2.0 issue with npx create-react-app #14

xfer opened this issue Apr 25, 2020 · 14 comments

Comments

@xfer
Copy link

xfer commented Apr 25, 2020

npx create-react-app test

npx: installed 99 in 6.053s
Must use import to load ES Module: /Users/<REDACTED>/.npm/_npx/93178/lib/node_modules/create-react-app/node_modules/is-promise/index.js
require() of ES modules is not supported.
require() of /Users/<REDACTED>/.npm/_npx/93178/lib/node_modules/create-react-app/node_modules/is-promise/index.js from /Users/<REDACTED>/.npm/_npx/93178/lib/node_modules/create-react-app/node_modules/run-async/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename /Users/<REDACTED>/.npm/_npx/93178/lib/node_modules/create-react-app/node_modules/is-promise/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/<REDACTED>/.npm/_npx/93178/lib/node_modules/create-react-app/node_modules/is-promise/package.json.```

@xfer xfer changed the title v2.2.0 is breaking npx create-react-app v2.2.0 issue with npx create-react-app Apr 25, 2020
@RyanZim
Copy link
Contributor

RyanZim commented Apr 25, 2020

Duplicate of #12; package is currently broken. Pin to 2.1.0 until the issue is fixed.

@jovanailin
Copy link

I am having the same issue with the same environment. I need the solution as quick as possible because I am overdue with a school project. Please someone help!

@alexmercier25
Copy link

same for me :/

@sudir81
Copy link

sudir81 commented Apr 25, 2020

I have the same issue, i tried all possible ways
npx create-react-app
yarn create react-app
create-react-app

all are throwing same error

i have node (12.16.2), npm (6.14.4), yarn (1.21.1).

@ghost
Copy link

ghost commented Apr 25, 2020

got same issue...

@siyavash4812
Copy link

Same issue but it happened when I added a new dependency to my react app 'video.js'

@aicayzer
Copy link

same issue here

@alexmercier25
Copy link

I've wrote a tweet, hope it goes to them... https://twitter.com/TheBuildex/status/1254097388081463296

@RyanZim
Copy link
Contributor

RyanZim commented Apr 25, 2020

More detailed workaround for create-react-app facebook/create-react-app#8896 (comment)

@juank11memphis
Copy link

Same problem here :(

@alexmercier25
Copy link

Workaround worked for me :) hope this get fixed soon though: facebook/create-react-app#8896 (comment)

@ed-f-jones
Copy link

Same here and my project is due in four days.

@mbreth
Copy link

mbreth commented Apr 25, 2020

Same here. Nothing is working

@ForbesLindesay
Copy link
Member

It should now be resolved. Since there are 4 issues about this, I'm going to close this issue in favour of #20. Please comment there if 2.2.1 does not fix your issue.

@then then locked and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests