https://www.npmjs.com/package/@meshtastic/core - has hardcoded node environment in the build, so it is literally impossible to use in browser. It fails as soon as imported since process is not defined there.
Meanwhile https://jsr.io/@meshtastic/core doesn't have such problem (though I'd rather use npm for consistency). However the versions on jsr are older than on npm which caused problems in my application.
So, as I see it, right now there is no way to use the latest @meshtastic/core in browser environment.
https://www.npmjs.com/package/@meshtastic/core - has hardcoded node environment in the build, so it is literally impossible to use in browser. It fails as soon as imported since
processis not defined there.Meanwhile https://jsr.io/@meshtastic/core doesn't have such problem (though I'd rather use npm for consistency). However the versions on
jsrare older than onnpmwhich caused problems in my application.So, as I see it, right now there is no way to use the latest
@meshtastic/corein browser environment.