Error: Build failed with 1 error:
node_modules/cashscript/dist/utils.js:1:256: ERROR: No matching export in "node_modules/@bitauth/libauth/build/index.js" for import "bigIntToCompactSize"
and
Uncaught SyntaxError: The requested module 'http://localhost:5173/node_modules/hash.js/lib/hash.js?v=fcabd058' doesn't provide an export named: 'default'
which has the comment // TODO: Replace with libauth
when using
yarn create vue
to initialize a default vue-vite app, cashscript import is broken.first I ran into
Uncaught TypeError: class heritage import_events.EventEmitter is not an object or null
originating from
var ElectrumSocket = class extends import_events.EventEmitter {
I was able to solve this with
yarn add events
https://github.com/vitejs/vite/issues/2694
but new errors pop up:
and
which has the comment
// TODO: Replace with libauth