Fresh typescript app fails with ReferenceError: WebAssembly is not defined
See original GitHub issueDescribe the bug
When creating a fresh new project with the following command:
npx create-react-app new-project --template typescript
when I start the development server with npm start
, I get the following error message:
Failed to compile
./src/index.tsx
ReferenceError: WebAssembly is not defined
Did you try recovering your dependencies?
Yes, I’ve tried removing everything, but this should be a ‘working out of the box’ thing I assume.
npm --version 6.14.4
Environment
npx create-react-app --info npx: installed 92 in 45.434s
Environment Info:
current version of create-react-app: 4.0.0 running from /home/oliver/.npm/_npx/594267/lib/node_modules/create-react-app
System: OS: Linux 5.8 Arch Linux CPU: (8) x64 Intel® Core™ i7-8550U CPU @ 1.80GHz Binaries: Node: 12.18.0 - /usr/lib/jvm/java-8-graalvm/jre/languages/js/bin/node Yarn: Not Found npm: 6.14.4 - /usr/lib/jvm/java-8-graalvm/jre/languages/js/bin/npm Browsers: Chrome: Not Found Firefox: 82.0.2 npmPackages: react: ^17.0.1 => 17.0.1 react-dom: ^17.0.1 => 17.0.1 react-scripts: 4.0.0 => 4.0.0 npmGlobalPackages: create-react-app: Not Found
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top GitHub Comments
@ohechtl Do not use no de with java-8-graalvm
This is also failing with graalvm-ee-java17-21.3.0