Closed livingrockrises closed 1 year ago
I am checking this https://tinyurl.com/2s3fvk7y there is possibly a circular dependency?
for js this below import works but still facing above issue
const SmartAccount = require("@biconomy/smart-account").default;
This might come when you have not configured the ws lib in webpack properly.
For react applications can add stream-browserify
in webpack file
For Next.js applications add stream-browserify
in next.config.js
"stream": require.resolve("stream-browserify"),
something like this what's done in gasless playground?
This issue has been inactive for 30 days. It will be closed due to inactivity. If this issue is still relevant, please comment to keep it open. Alternatively, you can create a new issue with updated information.
Describe the bug
The app starts failing after write import SmartAccount from "@biconomy/smart-account"
[TypeError: Class extends value undefined is not a constructor or null]
To Reproduce Steps to reproduce the behavior:
Expected behavior Smart Account should get initialised properly
Screenshots attached above
Desktop (please complete the following information):
Version [e.g. 22]
node v16.14.2
Additional context Import fails for js file