[SDK] zksync-ethers bundle error: Class extends value undefined is not a constructor or null #810
-
Team or ProjectNo response Select the SDKJavaScript EnvironmentMainnet Issue DescriptionI created a reproduction repository, check it out Simply importing
Error: Expected BehaviorI assume no crash is expected Code ExampleI'm using parcel to bundle the lib The problem occurs only for Related discussion: But I think it's different because I'm not using other dependencies mentioned there Repo Link (Optional)https://github.com/everdimension/parcel-zksync-ethers-issue-repro |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
It seems like you are encountering a compatibility issue with the Here are a few steps you can try to resolve the issue:
If you continue to experience difficulties, providing more details about your build setup and any specific configurations in your Parcel setup might help diagnose the issue further. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
don't know the root cause, but this workaround works for me: https://gist.github.com/sanekmelnikov/7235f25f5c538c77a4e27e13307092de |
Beta Was this translation helpful? Give feedback.
-
I solved it currently by adding this to
(aliases are a parcel feature: https://parceljs.org/features/dependency-resolution/#aliases) |
Beta Was this translation helpful? Give feedback.
I solved it currently by adding this to
package.json
:(aliases are a parcel feature: https://parceljs.org/features/dependency-resolution/#aliases)