Closed geoffwhittington closed 1 year ago
For anyone who is having this issue, the JS package works using Vite. This issue is only documented in Webpack-based projects.
I published a repo that uses Vite: https://github.com/geoffwhittington/meshtastic-reactapp
I've been trying to pnpm add @meshtastic/meshtasticjs into an existing create-react-app but I keep getting errors
This is how I created the react app:
Then I added the snippet from the docs to a file
Mesh.js
:And then I tried to use it in
App.js
:Using: