Skip to content

Cannot read properties of undefined (reading 'default') #13

@Wapaca

Description

@Wapaca

Hello,

I'm trying to implement wombat wallet but either with nuxt 2 or nuxt 3 i get the error in the title. It can happen from two files:

on wallet-plugin-wombat.js
`} else if (typeof self !== 'undefined') {
ws$1 = self.WebSocket || self.MozWebSocket;
}

var browser$3$1 = ws$1;

browser$3$1.default;

var inherits$d$1;
if (typeof Object.create === 'function'){`

browser$3$1 is undefined

And on protocol-scatter.m.js

`} else if (typeof self !== 'undefined') {
ws = self.WebSocket || self.MozWebSocket;
}

var browser$3 = ws;

browser$3.default;

var inherits$d;
if (typeof Object.create === 'function'){
inherits$d = function inherits(ctor, superCtor) {`

Same browser variable is undefined.

I'm not sure why i get the error, you can check on this nuxt 3 repo https://github.com/Wapaca/waxel_claim_ninjas/tree/add-wombat this branch doesn't work but the master with only anchor and mycloudwallet does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions