zksync-lite-docs
zksync-lite-docs copied to clipboard
error happened while import zksync in js
I'm trying to connect to zksync by js. However, something wrong happened when I import zksync lib. My node version is 18.15.0
the log shows: /data/shiweixu/zksync/node_modules/zksync/build/utils.js:23 exports.IERC20_INTERFACE = new ethers_1.utils.Interface(require('../abi/IERC20.json').abi); ^
TypeError: Cannot read properties of undefined (reading 'Interface')
at Object.
and the code of the file is only one line: import * as zksync from 'zksync';