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

Error - sdk-bls-wasm, Module not found: Can't resolve 'fs' #520

Open
andreibancioiu opened this issue Oct 22, 2024 · 2 comments
Open

Error - sdk-bls-wasm, Module not found: Can't resolve 'fs' #520

andreibancioiu opened this issue Oct 22, 2024 · 2 comments

Comments

@andreibancioiu
Copy link
Contributor

andreibancioiu commented Oct 22, 2024

Error when building a project:

./node_modules/@multiversx/sdk-bls-wasm/bls_c.js:9:1108
Module not found: Can't resolve 'fs'

Reported on Telegram:

@andreibancioiu
Copy link
Contributor Author

If using webpack, adjust the fallbacks configuration as follows:

webpack: (config, { buildId }) => {
    config.resolve.fallback = {
      fs: false, // This will prevent fs from being bundled for the client
      // You can add other shims here if needed
    }
}

Solution proposed on Telegram:

@andreibancioiu andreibancioiu changed the title sdk-bls-wasm, Module not found: Can't resolve 'fs' Error - sdk-bls-wasm, Module not found: Can't resolve 'fs' Oct 22, 2024
@andreibancioiu
Copy link
Contributor Author

andreibancioiu commented Oct 22, 2024

This is related to the recent inclusion of sdk-wallet into sdk-core, as part of the SDKs unification process.

At some point into the (near) future, sdk-bls-wasm will be dropped - to be replaced by noble-curves. See: multiversx/mx-sdk-js-wallet#30 and multiversx/mx-sdk-js-wallet#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

No branches or pull requests

1 participant