tree-sitter: Error loading `tree-sitter.{js,wasm}` in browser
Instead of relying on Parser.Language.load()
to properly load in .wasm
parsers, having an option like https://github.com/ballercat/wasm-loader for webpack users would give a second, battle-hardened approach to begin using tree-sitter on the web.
Needed because I am experiencing an error where Parser.Language.load
is looking in the wrong path for my .wasm
file.
Parser.Language.load("/tree-sitter-javascript.wasm")
sends a web request for /tree-sitter.wasm
. No fix is applicable.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (4 by maintainers)
It looks like your
tree-sitter.wasm
file is not getting served correctly.