Title: Mandelbrot Example errors · Issue #17 · AssemblyScript/website · GitHub
Open Graph Title: Mandelbrot Example errors · Issue #17 · AssemblyScript/website
X Title: Mandelbrot Example errors · Issue #17 · AssemblyScript/website
Description: I am trying to run the Mandelbrot Example locally, and I ran into this error when serving the content with http-server: (index):1 Uncaught (in promise) TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type...
Open Graph Description: I am trying to run the Mandelbrot Example locally, and I ran into this error when serving the content with http-server: (index):1 Uncaught (in promise) TypeError: Failed to execute 'compile' on 'We...
X Description: I am trying to run the Mandelbrot Example locally, and I ran into this error when serving the content with http-server: (index):1 Uncaught (in promise) TypeError: Failed to execute 'compile'...
Opengraph URL: https://github.com/AssemblyScript/website/issues/17
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mandelbrot Example errors","articleBody":"I am trying to run the [Mandelbrot Example](https://www.assemblyscript.org/examples/mandelbrot.html#running-locally) locally, and I ran into this error when serving the content with http-server: \r\n\r\n````\r\n(index):1 Uncaught (in promise) TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.\r\n````\r\n\r\nI eventually (I believe) found a way to serve the wasm with the correct MIME type using a php server. The documentation I found is here: https://www.php.net/manual/en/features.commandline.webserver.php#example-424. Following this I created a file called router.php with the following contents:\r\n````\r\n\u003c?php\r\n// router.php\r\n$path = pathinfo($_SERVER[\"SCRIPT_FILENAME\"]);\r\nif ($path[\"extension\"] == \"wasm\") {\r\n header(\"Content-Type: application/wasm\");\r\n readfile($_SERVER[\"SCRIPT_FILENAME\"]);\r\n}\r\nelse {\r\n return FALSE;\r\n}\r\n?>\r\n````\r\nthen I ran `php -S localhost:8000 router.php`. At this point I ran into a new error:\r\n`Uncaught (in promise) TypeError: Cannot read property 'update' of undefined` in which the \"exports\" variable coming from the line ` }).then(({ exports }) => {` is undefined.\r\n\r\nAny ideas what is going wrong here?","author":{"url":"https://github.com/jeffslofish","@type":"Person","name":"jeffslofish"},"datePublished":"2020-09-06T08:36:10Z","url":"https://github.com/AssemblyScript/website/issues/17"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a20f132f-60e8-33ce-c6bf-34f1be346380 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7AA:3F6072:385B5D:4F855D:6B005E72 |
| html-safe-nonce | a12d304de9c52f596dec539f56d55acb035b60360cb71b5b39b9707edf89d9bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0FBOjNGNjA3MjozODVCNUQ6NEY4NTVEOjZCMDA1RTcyIiwidmlzaXRvcl9pZCI6IjIxNjUzNTczNDQxNTI4NTg3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8d26f03981c368d0e0f85f7a09e316d2b4f186bc580ad8633c44e8b3b1f04b4d |
| hovercard-subject-tag | issue:694293871 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AssemblyScript/website/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f41e70f2669aa1f700995a052a6f8d233b236a4fe30b4d01351ab9553e331cb/AssemblyScript/website/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f41e70f2669aa1f700995a052a6f8d233b236a4fe30b4d01351ab9553e331cb/AssemblyScript/website/issues/17 |
| og:image:alt | I am trying to run the Mandelbrot Example locally, and I ran into this error when serving the content with http-server: (index):1 Uncaught (in promise) TypeError: Failed to execute 'compile' on 'We... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeffslofish |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| turbo-cache-control | no-preview |
| go-import | github.com/AssemblyScript/website git https://github.com/AssemblyScript/website.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 269375018 |
| octolytics-dimension-repository_nwo | AssemblyScript/website |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 269375018 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/website |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width