-
EnvironmentMainnet Acknowledgement
Issue DescriptionIn next.js, it is impossible to accurately obtain whether the crypto file type is node or web, resulting in packaging failure. Expected BehaviorThe packaging should be successful. Is it possible not to distinguish the file type, but to distinguish the node or web environment in the file? Code Example'use client' import zk from 'zksync-crypto' or import zk from 'zksync-crypto/dist/zksync-crypto-web' export default function Bridge() { and => npm run build will find a error: Repo Link (Optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Hi @Alan-Cn What are you trying to build? I'll leave you a link to our docs in case it helps you:
|
Beta Was this translation helpful? Give feedback.
No,
zksync-ethers
is for zkSync Era.For zkSync Lite, have you tried following the examples in this section of the docs? Also, check out this appendix to run the zksync lite library in the browser.