Load wasm file with webpack
Unanswered
Fire ant posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
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:
![Image](https://cdn.discordapp.com/attachments/1250036446996336682/1250037023566467122/image.png?ex=66697b32&is=666829b2&hm=f2bb19fec573ea1d4bf330f8acceb1fd0a40e3dc7dd64cf4ff32250983773f60&)
check out api/convert/route.ts and next.config.mjs