geut / sodium-javascript-plus

sodium-javascript with experimental support for xchacha20 and kx
MIT License
16 stars 0 forks source link

Can't resolve '../sodium-modules' #3

Closed DougAnderson444 closed 4 years ago

DougAnderson444 commented 4 years ago

When I run my code, I get

ERROR in ./node_modules/@geut/sodium-javascript-plus/lib/load-sodium-wasm.js
--
Module not found: 
Error: Can't resolve '../sodium-modules' in '/vercel/56e39944/node_modules/@geut/sodium-javascript-plus/lib'

It's weird because the json file is there. Should .json be added to the reference?

tinchoz49 commented 4 years ago

Hey @DougAnderson444, how are you?

That's weird, can you show me a reproducible example?

DougAnderson444 commented 4 years ago

Yeah, it was weird. I was able to work around it by using an alias for the module in webpack. I think it was a webpack issue as opposed to a sodium issue, so I'll go ahead and close this.