Skip to content

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

@technoplato

Description

@technoplato

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions