Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index.html fails on load #15

Open
JackTar99 opened this issue Aug 9, 2021 · 1 comment
Open

index.html fails on load #15

JackTar99 opened this issue Aug 9, 2021 · 1 comment

Comments

@JackTar99
Copy link

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

@william-stacken
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants