Issue loading NetWASM.js
See original GitHub issueFirst of all, GREAT work on this! Can’t wait to get off the ground with your lib given the super-thorough implementation of most industry features (VERY impressive for a JS lib in ML).
That said, I’m having an issue get the WebASM version to load (via NPM, from a node http server). I’ve added a static pass-through path to the /dist folder in the node_modules, and the files appear to pass through to the browser just fine, but I get a str.charCodeAt is not a function
error right off.
Suggestions?
Thanks!
NetWASM.js:1 failed to asynchronously prepare wasm: TypeError: str.charCodeAt is not a function
shell_printErr @ NetWASM.js:1
(anonymous) @ NetWASM.js:1
Promise.catch (async)
doNativeWasm @ NetWASM.js:1
Module.asm @ NetWASM.js:1
(anonymous) @ NetWASM.js:1
splitPathRe @ NetWASM.js:1
__webpack_require__ @ bootstrap 223be6444fa9ea82d12d:54
exports.webassembly @ jsNet.js:7
(anonymous) @ sim.js:18
(anonymous) @ app.js:9909
__webpack_require__ @ bootstrap 223be6444fa9ea82d12d:54
(anonymous) @ app.js:4326
__webpack_require__ @ bootstrap 223be6444fa9ea82d12d:54
webpackJsonpCallback @ bootstrap 223be6444fa9ea82d12d:25
(anonymous) @ app.js:1
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
DanRuta/jsNet: Javascript/WebAssembly deep learning library ...
The WebAssembly version is a little more complex to load, due to the NetWASM files which are generated by emscripten, containing the compiled...
Read more >Use .NET from any JavaScript app in .NET 7
Showcase of the JavaScript interop and running .NET in the browser, ... This post only shows interesting snippets, not the whole code.
Read more >.net - Web page load issue intermittently and no html/js ...
We have an asp.net MVC application and facing an issue for a specific web page that fails to load initially for few times...
Read more >Consuming .NET WebAssembly From JavaScript in the Browser
Showing how to load a .NET WASM file in a browser host and using the functionality from JavaScript.
Read more >Running Go CLI programs in the browser with WASM
js ), or GitHub. You can't load the HTML file the local filesystem as the browser will refuse to load the wasm file;...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I think it was one of my loaders or resolvers in webpack (for SASS compilation, React, JSX, etc)… I commented out my entire config and have been adding it back piece by piece. The errors are cleared for the moment.
Crossing my fingers!
Also thanks for the quick fix for the fs issue - worked for me! 👍
I can confirm the .wasm is loading identically to yours btw 👍