Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npx create-react-app not working "Must use import to load ES Module:" [closed]

error message

I've tried reinstalling node and removing appdata/roaming/npm and npm-cache. I've created several apps before so i'm not sure what's going on. Any help is appreciated.

like image 798
Robert Danielsson Avatar asked Apr 25 '20 15:04

Robert Danielsson


2 Answers

this issue is fixed with 2.2.2 version of is-promise package. If you still experience problems creating new CRA, consider npm install -g --force create-react-app

If even then bug is still present, please comment your issue to this github issue

like image 134
Asman Umbetov Avatar answered Oct 16 '22 10:10

Asman Umbetov


I would:

  1. Restart the machine. Ensure you log out of your session if needed
  2. Re-install Create React App
  3. Uninstall yarn and reinstall
  4. Reinstall node, ensure you use a newer version
  5. Use a different network connection, maybe something is being blocked by a firewall
like image 41
Jon Jones Avatar answered Oct 16 '22 10:10

Jon Jones