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

Bug: "Attempted to import module" log spam when using library #588

Open
technoplato opened this issue Jan 14, 2025 · 0 comments
Open

Bug: "Attempted to import module" log spam when using library #588

technoplato opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@technoplato
Copy link

Describe the bug

When we run yarn start in our app, we see the following log spam:

 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/@xmtp/user-preferences-bindings-wasm/dist/web/user_preferences_bindings_wasm" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/@xmtp/user-preferences-bindings-wasm". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/@noble/hashes/crypto.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/@noble/hashes". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/@xmtp/react-native-sdk/node_modules/@noble/hashes/crypto.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/@xmtp/react-native-sdk/node_modules/@noble/hashes". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/uint8arrays/cjs/src/to-string.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/uint8arrays". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/uint8arrays/cjs/src/from-string.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/uint8arrays". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/uint8arrays/cjs/src/concat.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/uint8arrays". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/@xmtp/xmtp-js/node_modules/@noble/hashes/crypto.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/@xmtp/xmtp-js/node_modules/@noble/hashes". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/@mobile-wallet-protocol/client/node_modules/@noble/ciphers/crypto.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/@mobile-wallet-protocol/client/node_modules/@noble/ciphers". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/@walletconnect/sign-client/node_modules/multiformats/cjs/src/basics.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/@walletconnect/sign-client/node_modules/multiformats". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/@walletconnect/core/node_modules/multiformats/cjs/src/basics.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/@walletconnect/core/node_modules/multiformats". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/thirdweb/node_modules/multiformats/cjs/src/basics.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/thirdweb/node_modules/multiformats". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/viem/node_modules/@noble/hashes/crypto.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/viem/node_modules/@noble/hashes". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.
 WARN  Attempted to import the module "/Users/technoplato/Development/work/converse/converse-app/node_modules/uint8arrays/node_modules/multiformats/cjs/src/basics.js" which is not listed in the "exports" of "/Users/technoplato/Development/work/converse/converse-app/node_modules/uint8arrays/node_modules/multiformats". Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API.

Expected behavior

No log spam from xmtp

Steps to reproduce the bug

Install library and run yarn ios

@technoplato technoplato added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant