AcalaNetwork / acala.js

https://developer.acala.network/
Apache License 2.0
59 stars 26 forks source link

fix esm error #521

Closed ntduan closed 2 months ago

ntduan commented 2 months ago

fix

SyntaxError: Named export 'isArray' not found. The requested module 'lodash' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'lodash';
const { isArray } = pkg;