atari2600-wasm
atari2600-wasm copied to clipboard
index.html fails on load
Issue: web/index.html doesn't do anything when you click on 'Run.' Repro:
- Populate a webserver from https://github.com/ColinEberhardt/atari2600-wasm/web.
- Open index.html
- 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

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