Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix esm #522

Merged
merged 4 commits into from
Sep 5, 2024
Merged

Fix esm #522

merged 4 commits into from
Sep 5, 2024

Conversation

ntduan
Copy link
Contributor

@ntduan ntduan commented Sep 5, 2024

fix esm error

SyntaxError: Named export 'isNumber' 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 { isNumber } = pkg;
Error: Cannot find module 'e2e-tests/node_modules/@acala-network/sdk/dist/esm/utils/get-chain-type.js.js' imported from e2e-tests/node_modules/@acala-network/sdk/dist/esm/wallet/token-provider/acala.js

@ntduan ntduan enabled auto-merge (squash) September 5, 2024 01:29
@ntduan ntduan merged commit fb2aff8 into master Sep 5, 2024
4 of 5 checks passed
@ntduan ntduan deleted the fix-esm branch September 5, 2024 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants