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

npm.export.js is pointing to missing matic.node.js files #438

Open
cromaniuc opened this issue Aug 9, 2024 · 0 comments
Open

npm.export.js is pointing to missing matic.node.js files #438

cromaniuc opened this issue Aug 9, 2024 · 0 comments

Comments

@cromaniuc
Copy link

Describe the bug

The Matic.js library uses an npm.export.js file to specify which parts of the library are exported for use when it's included as a dependency.
However, there is an issue with this file in the past releases that causes runtime errors when the library is loaded.

At runtime, when the library is loaded using the npm.export.js file, it fails with the following error:

Error: Cannot find module './matic.node.js'
Require stack:

/.../node_modules/@maticnetwork/maticjs/dist/npm.export.js
/.../node_modules/@maticnetwork/maticjs-web3/dist/matic-web3.node.js
/.../node_modules/@maticnetwork/maticjs-web3/dist/npm.export.js

Hint

This issue occurs because, during the library's build and packaging process, the npm.export.js file is not included in the release with the correct content.

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

No branches or pull requests

2 participants
@cromaniuc and others