-
Which compiler are you using?
Which version of Solidity or Vyper?0.8.13 zksolc/zkvyper version?latest Explain the issueHello guys, last couple days there were many package updates on zksync, though while I understand you are still working on it, but compiling contracts just doesn't work whatever I try, for me and many other developers, I would appreciate if some solution is presented in dev-general in discord on which packages to use for it to work.
"@matterlabs/hardhat-zksync-deploy": "^1.1.0",
"@matterlabs/hardhat-zksync-solc": "^1.0.3",
"@matterlabs/hardhat-zksync-verify": "^1.2.0",
"ethers": "^6.9.0",
"zksync-ethers": "^6.0.0"
TypeError: Class extends value undefined is not a constructor or null Link to your repo?No response |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 6 replies
-
Yeah, like @Morgosh wrote I have a lot of problems right now for example with upgradeable contracts (looks like problem with zksync-ethers). |
Beta Was this translation helpful? Give feedback.
-
Hey @Morgosh , thank you for the report! We're investigating and will post updates here |
Beta Was this translation helpful? Give feedback.
-
Hey @Morgosh, I tried to replicate the error, and I didn't succeed. From the dependencies mentioned in the issue, the only one missing is hardhat. When I added that, it successfully compiled the contracts and deployed them. The only thing that crosses my mind here is that there might be an issue with dependencies. The error stated here, |
Beta Was this translation helpful? Give feedback.
-
But still there are some errors for example with tests. Errors occurs when "zksync-ethers" is installed. Also still is the problem with upgradeable contracts... |
Beta Was this translation helpful? Give feedback.
I excluded the contract/hardhat part from my project and was able to get it to work, was using yarn monorepo, so I can't really figure out which package was conflicting. But can confirm that I got it working by having latest packages and making sure there are no conflicting ones:
by running:
yarn add -D hardhat @matterlabs/hardhat-zksync-deploy @matterlabs/hardhat-zksync-solc @matterlabs/hardhat-zksync-verify @matterlabs/zksync-contracts ethe…