Use
- NodeGlobalsPolyfillPlugin
- NodeModulesPolyfillPlugin
- rollupNodePolyFill
Read vite.config.ts
and node-modules-polyfill Config
Go to node_modules\@starcoin\starmask-onboarding\dist
and open starmask-onboarding.es.js
- import { parse } from 'bowser';
// fix
+ import * as Bowser from 'bowser';
+ const parse = Bowser.parse;
npm install
fix @starcoin/starmask-onboarding bowser
npm run dev
- open
localhost:3000