Imported package that use WASM and got error
Unanswered
Sun bear posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Sun bearOP
I imported package that uses wasm and called some method from the package and have got an error as on screenshot
![Image](https://cdn.discordapp.com/attachments/1201461085342011432/1201461085627232348/image.png?ex=65c9e6d4&is=65b771d4&hm=e02af7d5f38ecfc9037e5a445d61c67cec6668382aeb876fcccc915a804a70c3&)
5 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Oriental
hi! Yeah I'm not sure much what to do here either, what I did was load the wasm as a script in a custom document and then just referenced it in useEffects as a global variable
if you reference it with an import then webpack will try to mangle it with bundling which is probably not desired
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Sun bearOP
Thank you for the answer! Could you provide next js config?
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Oriental
I have my whole source public here
https://github.com/TiKevin83/gambatte-core/tree/wasm
https://github.com/TiKevin83/gambatte-core/tree/wasm
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Sun bearOP
Thank you