Load wasm file with webpack
Unanswered
Fire ant posted this in #help-forum
Fire antOP
https://github.com/birchwork/test1.git
I want to use the curlconverter library, but I'm having issues configuring Webpack. There's a piece of code from curlconverter that looks like this:
const Bash = await Parser.Language.load("/tree-sitter-bash.wasm");
const parser = new Parser();
parser.setLanguage(Bash);
I followed the instructions provided in the curlconverter README, but I am unable to load the WASM files
I want to use the curlconverter library, but I'm having issues configuring Webpack. There's a piece of code from curlconverter that looks like this:
const Bash = await Parser.Language.load("/tree-sitter-bash.wasm");
const parser = new Parser();
parser.setLanguage(Bash);
I followed the instructions provided in the curlconverter README, but I am unable to load the WASM files
3 Replies
Error:
check out api/convert/route.ts and next.config.mjs