Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue loading NetWASM.js

See original GitHub issue

First 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.



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:closed
  • Created 6 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

kwhitleycommented, Mar 22, 2018

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! 👍

kwhitleycommented, Mar 22, 2018

I can confirm the .wasm is loading identically to yours btw 👍

Read more comments on GitHub >

github_iconTop 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 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found