Title: Incorrect glue code assembly. Failed to instantiate WASM. · Issue #2980 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: Incorrect glue code assembly. Failed to instantiate WASM. · Issue #2980 · AssemblyScript/assemblyscript
X Title: Incorrect glue code assembly. Failed to instantiate WASM. · Issue #2980 · AssemblyScript/assemblyscript
Description: Bug description When I compile a WASM module, there are example.js files in the example.wasm folder. "example:build:wasm": "asc --config asconfig.json", Failed to instantiate WASM: TypeError: Cannot read properties of undefined (reading ...
Open Graph Description: Bug description When I compile a WASM module, there are example.js files in the example.wasm folder. "example:build:wasm": "asc --config asconfig.json", Failed to instantiate WASM: TypeError: Canno...
X Description: Bug description When I compile a WASM module, there are example.js files in the example.wasm folder. "example:build:wasm": "asc --config asconfig.json", Failed to instantiate WA...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/2980
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect glue code assembly. Failed to instantiate WASM.","articleBody":"### Bug description\n\n\nWhen I compile a WASM module, there are example.js files in the example.wasm folder.\n```\n \"example:build:wasm\": \"asc --config asconfig.json\",\n```\n\n```\nFailed to instantiate WASM: TypeError: Cannot read properties of undefined (reading 'memory')\n at _c (example.js:76:26)\n```\n\nThere is a line like this in the code\n\n```\n const { exports } = await WebAssembly.instantiate(module, adaptedImports);\n```\n\nThis is not a valid response.\nThis response is returned.\n```\n{\n \"module\": {},\n \"instance\": {}\n}\n```\n\nexports is always undefined\n\nHow to solve this problem?\n\n### Steps to reproduce\n\nasconfig.json\n```\n{\n \"entries\": [\"./src/assembly/index.ts\"],\n \"options\": {\n \"outFile\": \"./src/module/example.wasm\",\n \"target\": \"release\",\n \"exportRuntime\": true,\n \"bindings\": \"raw\",\n \"disableWarning\": [235],\n \"optimizeLevel\": 3,\n \"shrinkLevel\": 1,\n \"converge\": true,\n \"noAssert\": false,\n \"runtime\": \"stub\"\n }\n}\n```\n\nasc --config asconfig.json\n\n### AssemblyScript version\n\n0.28.9","author":{"url":"https://github.com/ZababurinSergei","@type":"Person","name":"ZababurinSergei"},"datePublished":"2026-02-16T16:49:20Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/2980"}
| 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:3117f4d2-d632-bef0-b483-3798e47c0fb1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82FC:37BEAD:29E3AB0:3945147:6B0051C1 |
| html-safe-nonce | 52f461d718992e71faf7af1569828ae41ff040723bbedd0ab90ba5f72b719ff9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkZDOjM3QkVBRDoyOUUzQUIwOjM5NDUxNDc6NkIwMDUxQzEiLCJ2aXNpdG9yX2lkIjoiMjY0MjMzMDE2NjUyNDY2MjIxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca28596c4cbd607e59e97bfd21e84677d150e373419ef0995255bfc768214908 |
| hovercard-subject-tag | issue:3948641488 |
| 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/assemblyscript/2980/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac6b11438b1f18b8b77d790f4fe919b8b2ebd829c2a7e72b4b210a67d3da2518/AssemblyScript/assemblyscript/issues/2980 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac6b11438b1f18b8b77d790f4fe919b8b2ebd829c2a7e72b4b210a67d3da2518/AssemblyScript/assemblyscript/issues/2980 |
| og:image:alt | Bug description When I compile a WASM module, there are example.js files in the example.wasm folder. "example:build:wasm": "asc --config asconfig.json", Failed to instantiate WASM: TypeError: Canno... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ZababurinSergei |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| turbo-cache-control | no-preview |
| go-import | github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 105138356 |
| octolytics-dimension-repository_nwo | AssemblyScript/assemblyscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105138356 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/assemblyscript |
| 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 | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width