Closed paul90 closed 3 years ago
Thank you for looking into this, I haven't tested browser builds in a while.
Does pinning the version to 3.0.2 in the SDK's package.json help?
Not sure, the browser build process works, but two of tests (51 and 52) fail with Firefox 83.0 (they all pass in Firefox 85.0b1 and Chrome).
Also at the end of the console log there are 6 Uncaught (in promise) NRPC_ERR_CLOSE: nanomessage-rpc was closed
errors.
While typing my reply, above, I noticed that there was an incoming update to Firefox - retesting with this updated version Firefox 84.0 the tests all pass. So it looks as if pinning sodium-universal
to 3.0.2 helps.
Not looked into all the changes that Firefox 84.0 brings. But, I do know that it corrects a long standing issue with the handling of localhost, adding support for localhost subdomains.
Sweet, thank you for looking into this.
Would you be down to submit a pull request for pinning the version?
Should be able to put together a PR.
Think I've found the underlying problem. The problem is with the sodium-universal
3.0.3 package not containing everything it should. It looks very much as if the prepublish didn't run!
If I clone the sodium-universal repo alongside the sdk repo, run npm i
and then the run the prepublish script, then over in the sdk directory install sodium-universal from the local repo, using npm i $(npm pack ../sodium-universal | tail -1)
the build for the browser works.
I'm going to close the PR.
Closing this. The release of sodium-universal@3.0.4 has fixed this issue.
Looks to be cause by a problem reported upstream as https://github.com/sodium-friends/sodium-universal/issues/6
npm run build
fails with:Oh, and there is a missing
npm install
betweencd sdk
andnpm run build
in the readme.