torusresearch / torus-embed

Embeds the Torus Wallet directly in your application via torus-embed. Exposes a Web3 Provider.
https://demo-eth.tor.us
MIT License
84 stars 52 forks source link

Uncaught TypeError: Class extends value undefined is not a constructor or null : asStream.js:5:46 #497

Closed ruben-certhis closed 1 year ago

ruben-certhis commented 1 year ago

Describe the bug Hi , when i implement "@toruslabs/torus-embed" i got error

My code :

import Torus from "@toruslabs/torus-embed";
import Web3 from "web3";
const torus = new Torus();

Error :

asStream.js:5 Uncaught TypeError: Class extends value undefined is not a constructor or null at eval (asStream.js:5:46) at ./node_modules/@metamask/obs-store/dist/asStream.js (compile_app.js:63:1) at webpack_require__ (compile_app.js:1304:42) at eval (index.js:13:14) at ./node_modules/@metamask/obs-store/dist/index.js (compile_app.js:74:1) at webpack_require (compile_app.js:1304:42) at eval (torus.esm.js:19:77) at ./node_modules/@toruslabs/torus-embed/dist/torus.esm.js (compile_app.js:140:1) at __webpack_require (compile_app.js:1304:42) at eval (app.js:2:80)

Vobble-fun commented 1 year ago

@ruben-certhis I'm also facing the same issue. Any solutions on this?

cozmbatman commented 1 year ago

@ruben-certhis @Vobble-fun did you guys find any resolution for this?

ruben-certhis commented 1 year ago

We created our own wallet ....

chaitanyapotti commented 1 year ago

This is fixed now in 2.0.0