atari2600-wasm icon indicating copy to clipboard operation
atari2600-wasm copied to clipboard

index.html fails on load

Open JackTar99 opened this issue 4 years ago • 1 comments

Issue: web/index.html doesn't do anything when you click on 'Run.' Repro:

  1. Populate a webserver from https://github.com/ColinEberhardt/atari2600-wasm/web.
  2. Open index.html
  3. Click on Run

Details: The source pane shows a fetch error at 17675: fetch("/build/untouched.wasm")

The developer pane shows two errors: `bundle.js:17675 GET http://simulationstop.com/build/untouched.wasm 404 (Not Found) buildAndRun @ bundle.js:17675 run @ bundle.js:17697 (anonymous) @ bundle.js:17700 (anonymous) @ bundle.js:17708 bundle.js:17694 Uncaught (in promise) TypeError: Failed to execute 'compile' on 'WebAssembly': HTTP status code is not ok

image image

JackTar99 avatar Aug 09 '21 21:08 JackTar99

I was able to build the emulator like this:

mkdir web/build
npm install
npx asc assembly/index.ts -b web/build/untouched.wasm

Don't know if it runs properly though, but it might help

william-stacken avatar Apr 03 '23 07:04 william-stacken