question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fresh typescript app fails with ReferenceError: WebAssembly is not defined

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
cgx9commented, Nov 12, 2020

@ohechtl Do not use no de with java-8-graalvm

0reactions
ttelangcommented, Dec 8, 2021

This is also failing with graalvm-ee-java17-21.3.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: WebAssembly is not defined - Stack Overflow
I was getting the reference error for webassembly. So I updated the node with latest version(16), it changed the npm version also.
Read more >
WebAssembly/Rust Tutorial: Pitch-perfect Audio Processing
This WebAssembly/Rust tutorial leverages React.js and the Web Audio API to make a basic guitar tuner app that runs at 60 FPS, even...
Read more >
puppeteer document is not defined - You.com | The AI Search ...
How to fix ReferenceError: Document is not defined in JavaScript ... That is to say, you are trying to access the document object...
Read more >
Uncaught ReferenceError: Treeview is not defined
From what I see, the issue is probably caused by not importing the proper file. You are importing it from modules folder and...
Read more >
Interacting with code — Emscripten 3.1.26-git (dev ...
Another option is to put most of your code in an object, not a function, ... memory into JavaScript can be tricky when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found