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]: Module Parse Failed (Nextjs + Reown Appkit) #1150

Closed
adityabhattad2021 opened this issue Nov 29, 2024 · 14 comments
Closed

[Bug]: Module Parse Failed (Nextjs + Reown Appkit) #1150

adityabhattad2021 opened this issue Nov 29, 2024 · 14 comments

Comments

@adityabhattad2021
Copy link

adityabhattad2021 commented Nov 29, 2024

SDK

Web

Provide environment information

  • Windows WSL
  • Nodejs v20.11.1

MetaMask SDK Version

0.31.0

MetaMask Mobile app Version

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

Here is the full build log file:
build_logs.txt

Getting unknown errors in the terminal

Import trace for requested module:
./node_modules/@metamask/sdk/dist/browser/es/metamask-sdk.js.map
./node_modules/@metamask/sdk/dist/browser/es/ lazy ^\.\/.*$ namespace object
./node_modules/@metamask/sdk/dist/browser/es/metamask-sdk.js
./node_modules/@wagmi/connectors/dist/esm/metaMask.js
./node_modules/@wagmi/connectors/dist/esm/exports/index.js
./node_modules/@reown/appkit-adapter-wagmi/dist/esm/src/client.js
./node_modules/@reown/appkit-adapter-wagmi/dist/esm/src/index.js
./src/wagmi/config/index.ts
./src/wagmi/provider/web3-modal.tsx
AMP bind syntax ["../../../node_modules/rollup-plugin-node-globals/src/global.js","../../../node_modules/buffer-es6/base64.js","../../../node_modules/buffer-es6/ieee754.js","../../../node_modules/buffer-es6/isArray.js","../../../node_modules/buffer-es6/index.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/_assert.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/utils.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/consts.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/config.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/crypto.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/webcrypto.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/_assert.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/crypto.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/utils.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/_md.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/_u64.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/sha512.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/utils.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/modular.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/curve.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/edwards.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/hash-to-curve.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/montgomery.js","../../../../sdk-communication-layer/node_modules/@noble/curves/ed25519.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/sha256.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/hmac.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/weierstrass.js","../../../../sdk-communication-layer/node_modules/@noble/curves/_shortw_utils.js","../../../../sdk-communication-layer/node_modules/@noble/curves/secp256k1.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/utils/hex.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/utils/elliptic.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/hkdf.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/utils/hash.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/_polyval.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/aes.js","../../../../sdk-communication-layer/node_modules/@ecies/ciphers/dist/aes/noble.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/_arx.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/_poly1305.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/chacha.js","../../../../sdk-communication-layer/node_modules/@ecies/ciphers/dist/chacha/noble.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/utils/symmetric.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/utils/index.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/keys/PublicKey.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/keys/PrivateKey.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/keys/index.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/index.js","../../../../sdk-communication-layer/dist/browser/es/metamask-sdk-communication-layer.js","../../../node_modules/@metamask/providers/dist/chunk-I6HXGZRD.mjs","../../../node_modules/@metamask/providers/dist/chunk-ZGDQ3IYD.mjs","../../../node_modules/@metamask/providers/dist/chunk-5FL6VRJJ.mjs","../../../node_modules/@metamask/json-rpc-engine/dist/chunk-6XXPTZV6.mjs","../../../node_modules/@metamask/json-rpc-engine/dist/chunk-R7LKI5H5.mjs","../../../node_modules/@metamask/json-rpc-engine/dist/chunk-XUI43LEZ.mjs","../../../node_modules/@metamask/rpc-errors/dist/chunk-MIW4NMY6.mjs","../../../node_modules/@metamask/utils/dist/chunk-H4YFDLB7.mjs","../../../node_modules/superstruct/dist/index.mjs","../../../node_modules/@metamask/utils/dist/chunk-74DGVJVE.mjs","../../../node_modules/@metamask/utils/dist/chunk-XYGUOY6N.mjs","../../../node_modules/process-es6/browser.js","../../../node_modules/@metamask/utils/dist/chunk-6C35XQOF.mjs","../../../node_modules/@metamask/rpc-errors/dist/chunk-MPU3CVX3.mjs","../../../node_modules/fast-safe-stringify/index.js","../../../node_modules/@metamask/rpc-errors/dist/chunk-XSKO3GXZ.mjs","../../../node_modules/@metamask/rpc-errors/dist/chunk-KYP27U3C.mjs","../../../node_modules/rollup-plugin-node-builtins/src/es6/events.js","../../../node_modules/@metamask/safe-event-emitter/index.js","../../../node_modules/@metamask/json-rpc-engine/dist/chunk-5HCYV4FV.mjs","../../../node_modules/@metamask/providers/dist/chunk-ZN7WV55J.mjs","../../../node_modules/@metamask/providers/dist/chunk-55ZQ55PO.mjs","../../../node_modules/@metamask/providers/dist/chunk-X66SUIEF.mjs","../../../node_modules/@metamask/providers/node_modules/@metamask/safe-event-emitter/dist/esm/index.mjs","../../../node_modules/fast-deep-equal/index.js","../../../node_modules/@metamask/providers/dist/chunk-OGPA5Q76.mjs","../../../node_modules/readable-stream/lib/internal/streams/stream-browser.js","../../../node_modules/rollup-plugin-node-builtins/src/es6/inherits.js","../../../node_modules/rollup-plugin-node-builtins/src/es6/util.js","../../../node_modules/readable-stream/lib/internal/streams/buffer_list.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/errors-browser.js","../../../node_modules/readable-stream/lib/internal/streams/state.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/util-deprecate/browser.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/lib/internal/streams/end-of-stream.js","../../../node_modules/readable-stream/lib/internal/streams/async_iterator.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/internal/streams/from-browser.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/internal/streams/pipeline.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/readable-browser.js","../../../node_modules/@metamask/json-rpc-middleware-stream/dist/chunk-446QYOBP.mjs","../../../node_modules/wrappy/wrappy.js","../../../node_modules/once/once.js","../../../node_modules/@metamask/object-multiplex/dist/Substream.js","../../../node_modules/@metamask/object-multiplex/dist/ObjectMultiplex.js","../../../node_modules/@metamask/object-multiplex/dist/index.js","../../../node_modules/is-stream/index.js","../../../node_modules/@metamask/providers/dist/chunk-URMSZO7Z.mjs","../../../node_modules/@metamask/providers/dist/chunk-UTROHXPT.mjs","../../../src/utils/logger.ts","../../../node_modules/eth-rpc-errors/dist/classes.js","../../../node_modules/eth-rpc-errors/dist/error-constants.js","../../../node_modules/eth-rpc-errors/dist/utils.js","../../../node_modules/eth-rpc-errors/dist/errors.js","../../../node_modules/eth-rpc-errors/dist/index.js","../../../src/config.ts","../../../src/storage-manager/StorageManagerWeb.ts","../../../src/storage-manager/getStorageManager.ts","../../../src/provider/SDKProvider.ts","../../../src/services/SDKProvider/ConnectionManager/handleDisconnect.ts","../../../src/services/SDKProvider/InitializationManager/initializeStateAsync.ts","../../../src/services/SDKProvider/InitializationManager/initializeState.ts","../../../src/services/SDKProvider/ChainManager/handleChainChanged.ts","../../../src/constants.ts","../../../src/types/MetaMaskSDKEvents.ts","../../../src/types/ProviderUpdateType.ts","../../../src/services/MetaMaskSDK/ConnectionManager/terminate.ts","../../../src/services/MetaMaskSDK/ConnectionManager/connectAndSign.ts","../../../src/utils/hex.utils.ts","../../../src/services/MetaMaskSDK/ProviderManager/connectWithExtensionProvider.ts","../../../src/utils/base64.ts","../../../src/services/Ethereum.ts","../../../node_modules/@metamask/providers/dist/chunk-LF2KN6ZT.mjs","../../../node_modules/@metamask/providers/dist/chunk-F2Z5ZMH3.mjs","../../../src/services/RemoteCommunicationPostMessageStream/write.ts","../../../src/services/RemoteCommunicationPostMessageStream/extractMethod.ts","../../../src/PostMessageStream/RemoteCommunicationPostMessageStream.ts","../../../src/services/RemoteCommunicationPostMessageStream/onMessage.ts","../../../src/services/rpc-requests/RPCRequestHandler.ts","../../../src/utils/wait.ts","../../../src/provider/initializeMobileProvider.ts","../../../src/PostMessageStream/getPostMessageStream.ts","../../../src/provider/extensionConnectWithOverwrite.ts","../../../src/services/MetaMaskSDK/InitializerManager/initializeProviderAndEventListeners.ts","../../../src/services/MetaMaskSDK/InitializerManager/initEventListeners.ts","../../../src/services/Analytics.ts","../../../src/utils/extractFavicon.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupDappMetadata.ts","../../../src/provider/extensionProviderHelpers/handleUuid.ts","../../../src/provider/extensionProviderHelpers/handleBatchMethod.ts","../../../src/provider/wrapExtensionProvider.ts","../../../src/provider/extensionProviderHelpers/handleConnectSignMethod.ts","../../../src/provider/extensionProviderHelpers/handleConnectWithMethod.ts","../../../src/utils/eip6963RequestProvider.ts","../../../src/utils/get-browser-extension.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupInfuraProvider.ts","../../../node_modules/bowser/es5.js","../../../src/Platform/PlatfformManager.ts","../../../src/services/PlatfformManager/openDeeplink.ts","../../../src/services/PlatfformManager/isMetaMaskInstalled.ts","../../../src/services/PlatfformManager/getPlatformType.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupReadOnlyRPCProviders.ts","../../../node_modules/@metamask/onboarding/dist/metamask-onboarding.es.js","../../../src/services/MetaMaskInstaller/startInstaller.ts","../../../src/Platform/MetaMaskInstaller.ts","../../../src/services/MetaMaskInstaller/startDesktopOnboarding.ts","../../../src/services/MetaMaskInstaller/redirectToProperInstall.ts","../../../src/services/MetaMaskInstaller/checkInstallation.ts","../../../src/ui/InstallModal/Modal-web.ts","../../../src/ui/InstallModal/InstallModal-web.ts","../../../src/ui/InstallModal/pendingModal-web.ts","../../../src/services/RemoteConnection/ConnectionInitializer/initializeConnector.ts","../../../src/services/RemoteConnection/EventListeners/cleanupListeners.ts","../../../src/services/RemoteConnection/ConnectionManager/connectWithModalInstaller.ts","../../../src/services/RemoteConnection/ModalManager/showInstallModal.ts","../../../src/services/RemoteConnection/EventListeners/setupListeners.ts","../../../src/services/RemoteConnection/ConnectionManager/startConnection.ts","../../../src/services/RemoteConnection/ConnectionManager/connectWithDeeplink.ts","../../../src/services/RemoteConnection/RemoteConnection.ts","../../../src/services/RemoteConnection/ModalManager/showActiveModal.ts","../../../src/services/RemoteConnection/ConnectionInitializer/cleanupConnector.ts","../../../src/services/MetaMaskSDK/InitializerManager/performSDKInitialization.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupPlatformManager.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupAnalytics.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupStorage.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupExtensionPreferences.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupRemoteConnectionAndInstaller.ts","../../../src/services/MetaMaskSDK/InitializerManager/handleAutoAndExtensionConnections.ts","../../../src/sdk.ts","../../../src/services/MetaMaskSDK/InitializerManager/initializeMetaMaskSDK.ts","../../../src/services/MetaMaskSDK/ConnectionManager/connect.ts","../../../src/services/MetaMaskSDK/ConnectionManager/connectWith.ts","../../../src/services/MetaMaskSDK/ConnectionManager/resume.ts","../../../../sdk-install-modal-web/dist/esm-es5/index-4b8a94c9.js","../../../../sdk-install-modal-web/dist/esm-es5/loader.js","../../../../sdk-install-modal-web/dist/loader/index.js","../../../../sdk-install-modal-web/dist/esm/polyfills/dom.js","../../../../sdk-install-modal-web/dist/esm/polyfills/index.js","../../../../sdk-install-modal-web/dist/esm/polyfills/core-js.js","../../../../sdk-install-modal-web/dist/esm-es5/simple-i18n-81e97ab4.js","../../../../sdk-install-modal-web/dist/esm-es5/index-f0bfb0c3.js","../../../../sdk-install-modal-web/dist/esm-es5/mm-install-modal.entry.js","../../../../sdk-install-modal-web/dist/esm-es5/mm-pending-modal.entry.js","../../../../sdk-install-modal-web/dist/esm-es5/mm-select-modal.entry.js"]='' is not supported in JSX, use 'data-amp-bind-"../../../node_modules/rollup-plugin-node-globals/src/global.js","../../../node_modules/buffer-es6/base64.js","../../../node_modules/buffer-es6/ieee754.js","../../../node_modules/buffer-es6/isArray.js","../../../node_modules/buffer-es6/index.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/_assert.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/utils.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/consts.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/config.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/crypto.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/webcrypto.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/_assert.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/crypto.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/utils.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/_md.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/_u64.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/sha512.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/utils.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/modular.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/curve.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/edwards.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/hash-to-curve.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/montgomery.js","../../../../sdk-communication-layer/node_modules/@noble/curves/ed25519.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/sha256.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/hmac.js","../../../../sdk-communication-layer/node_modules/@noble/curves/abstract/weierstrass.js","../../../../sdk-communication-layer/node_modules/@noble/curves/_shortw_utils.js","../../../../sdk-communication-layer/node_modules/@noble/curves/secp256k1.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/utils/hex.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/utils/elliptic.js","../../../../sdk-communication-layer/node_modules/@noble/hashes/hkdf.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/utils/hash.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/_polyval.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/aes.js","../../../../sdk-communication-layer/node_modules/@ecies/ciphers/dist/aes/noble.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/_arx.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/_poly1305.js","../../../../sdk-communication-layer/node_modules/@noble/ciphers/chacha.js","../../../../sdk-communication-layer/node_modules/@ecies/ciphers/dist/chacha/noble.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/utils/symmetric.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/utils/index.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/keys/PublicKey.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/keys/PrivateKey.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/keys/index.js","../../../../sdk-communication-layer/node_modules/eciesjs/dist/index.js","../../../../sdk-communication-layer/dist/browser/es/metamask-sdk-communication-layer.js","../../../node_modules/@metamask/providers/dist/chunk-I6HXGZRD.mjs","../../../node_modules/@metamask/providers/dist/chunk-ZGDQ3IYD.mjs","../../../node_modules/@metamask/providers/dist/chunk-5FL6VRJJ.mjs","../../../node_modules/@metamask/json-rpc-engine/dist/chunk-6XXPTZV6.mjs","../../../node_modules/@metamask/json-rpc-engine/dist/chunk-R7LKI5H5.mjs","../../../node_modules/@metamask/json-rpc-engine/dist/chunk-XUI43LEZ.mjs","../../../node_modules/@metamask/rpc-errors/dist/chunk-MIW4NMY6.mjs","../../../node_modules/@metamask/utils/dist/chunk-H4YFDLB7.mjs","../../../node_modules/superstruct/dist/index.mjs","../../../node_modules/@metamask/utils/dist/chunk-74DGVJVE.mjs","../../../node_modules/@metamask/utils/dist/chunk-XYGUOY6N.mjs","../../../node_modules/process-es6/browser.js","../../../node_modules/@metamask/utils/dist/chunk-6C35XQOF.mjs","../../../node_modules/@metamask/rpc-errors/dist/chunk-MPU3CVX3.mjs","../../../node_modules/fast-safe-stringify/index.js","../../../node_modules/@metamask/rpc-errors/dist/chunk-XSKO3GXZ.mjs","../../../node_modules/@metamask/rpc-errors/dist/chunk-KYP27U3C.mjs","../../../node_modules/rollup-plugin-node-builtins/src/es6/events.js","../../../node_modules/@metamask/safe-event-emitter/index.js","../../../node_modules/@metamask/json-rpc-engine/dist/chunk-5HCYV4FV.mjs","../../../node_modules/@metamask/providers/dist/chunk-ZN7WV55J.mjs","../../../node_modules/@metamask/providers/dist/chunk-55ZQ55PO.mjs","../../../node_modules/@metamask/providers/dist/chunk-X66SUIEF.mjs","../../../node_modules/@metamask/providers/node_modules/@metamask/safe-event-emitter/dist/esm/index.mjs","../../../node_modules/fast-deep-equal/index.js","../../../node_modules/@metamask/providers/dist/chunk-OGPA5Q76.mjs","../../../node_modules/readable-stream/lib/internal/streams/stream-browser.js","../../../node_modules/rollup-plugin-node-builtins/src/es6/inherits.js","../../../node_modules/rollup-plugin-node-builtins/src/es6/util.js","../../../node_modules/readable-stream/lib/internal/streams/buffer_list.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/errors-browser.js","../../../node_modules/readable-stream/lib/internal/streams/state.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/util-deprecate/browser.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/lib/internal/streams/end-of-stream.js","../../../node_modules/readable-stream/lib/internal/streams/async_iterator.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/internal/streams/from-browser.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/internal/streams/pipeline.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/readable-browser.js","../../../node_modules/@metamask/json-rpc-middleware-stream/dist/chunk-446QYOBP.mjs","../../../node_modules/wrappy/wrappy.js","../../../node_modules/once/once.js","../../../node_modules/@metamask/object-multiplex/dist/Substream.js","../../../node_modules/@metamask/object-multiplex/dist/ObjectMultiplex.js","../../../node_modules/@metamask/object-multiplex/dist/index.js","../../../node_modules/is-stream/index.js","../../../node_modules/@metamask/providers/dist/chunk-URMSZO7Z.mjs","../../../node_modules/@metamask/providers/dist/chunk-UTROHXPT.mjs","../../../src/utils/logger.ts","../../../node_modules/eth-rpc-errors/dist/classes.js","../../../node_modules/eth-rpc-errors/dist/error-constants.js","../../../node_modules/eth-rpc-errors/dist/utils.js","../../../node_modules/eth-rpc-errors/dist/errors.js","../../../node_modules/eth-rpc-errors/dist/index.js","../../../src/config.ts","../../../src/storage-manager/StorageManagerWeb.ts","../../../src/storage-manager/getStorageManager.ts","../../../src/provider/SDKProvider.ts","../../../src/services/SDKProvider/ConnectionManager/handleDisconnect.ts","../../../src/services/SDKProvider/InitializationManager/initializeStateAsync.ts","../../../src/services/SDKProvider/InitializationManager/initializeState.ts","../../../src/services/SDKProvider/ChainManager/handleChainChanged.ts","../../../src/constants.ts","../../../src/types/MetaMaskSDKEvents.ts","../../../src/types/ProviderUpdateType.ts","../../../src/services/MetaMaskSDK/ConnectionManager/terminate.ts","../../../src/services/MetaMaskSDK/ConnectionManager/connectAndSign.ts","../../../src/utils/hex.utils.ts","../../../src/services/MetaMaskSDK/ProviderManager/connectWithExtensionProvider.ts","../../../src/utils/base64.ts","../../../src/services/Ethereum.ts","../../../node_modules/@metamask/providers/dist/chunk-LF2KN6ZT.mjs","../../../node_modules/@metamask/providers/dist/chunk-F2Z5ZMH3.mjs","../../../src/services/RemoteCommunicationPostMessageStream/write.ts","../../../src/services/RemoteCommunicationPostMessageStream/extractMethod.ts","../../../src/PostMessageStream/RemoteCommunicationPostMessageStream.ts","../../../src/services/RemoteCommunicationPostMessageStream/onMessage.ts","../../../src/services/rpc-requests/RPCRequestHandler.ts","../../../src/utils/wait.ts","../../../src/provider/initializeMobileProvider.ts","../../../src/PostMessageStream/getPostMessageStream.ts","../../../src/provider/extensionConnectWithOverwrite.ts","../../../src/services/MetaMaskSDK/InitializerManager/initializeProviderAndEventListeners.ts","../../../src/services/MetaMaskSDK/InitializerManager/initEventListeners.ts","../../../src/services/Analytics.ts","../../../src/utils/extractFavicon.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupDappMetadata.ts","../../../src/provider/extensionProviderHelpers/handleUuid.ts","../../../src/provider/extensionProviderHelpers/handleBatchMethod.ts","../../../src/provider/wrapExtensionProvider.ts","../../../src/provider/extensionProviderHelpers/handleConnectSignMethod.ts","../../../src/provider/extensionProviderHelpers/handleConnectWithMethod.ts","../../../src/utils/eip6963RequestProvider.ts","../../../src/utils/get-browser-extension.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupInfuraProvider.ts","../../../node_modules/bowser/es5.js","../../../src/Platform/PlatfformManager.ts","../../../src/services/PlatfformManager/openDeeplink.ts","../../../src/services/PlatfformManager/isMetaMaskInstalled.ts","../../../src/services/PlatfformManager/getPlatformType.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupReadOnlyRPCProviders.ts","../../../node_modules/@metamask/onboarding/dist/metamask-onboarding.es.js","../../../src/services/MetaMaskInstaller/startInstaller.ts","../../../src/Platform/MetaMaskInstaller.ts","../../../src/services/MetaMaskInstaller/startDesktopOnboarding.ts","../../../src/services/MetaMaskInstaller/redirectToProperInstall.ts","../../../src/services/MetaMaskInstaller/checkInstallation.ts","../../../src/ui/InstallModal/Modal-web.ts","../../../src/ui/InstallModal/InstallModal-web.ts","../../../src/ui/InstallModal/pendingModal-web.ts","../../../src/services/RemoteConnection/ConnectionInitializer/initializeConnector.ts","../../../src/services/RemoteConnection/EventListeners/cleanupListeners.ts","../../../src/services/RemoteConnection/ConnectionManager/connectWithModalInstaller.ts","../../../src/services/RemoteConnection/ModalManager/showInstallModal.ts","../../../src/services/RemoteConnection/EventListeners/setupListeners.ts","../../../src/services/RemoteConnection/ConnectionManager/startConnection.ts","../../../src/services/RemoteConnection/ConnectionManager/connectWithDeeplink.ts","../../../src/services/RemoteConnection/RemoteConnection.ts","../../../src/services/RemoteConnection/ModalManager/showActiveModal.ts","../../../src/services/RemoteConnection/ConnectionInitializer/cleanupConnector.ts","../../../src/services/MetaMaskSDK/InitializerManager/performSDKInitialization.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupPlatformManager.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupAnalytics.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupStorage.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupExtensionPreferences.ts","../../../src/services/MetaMaskSDK/InitializerManager/setupRemoteConnectionAndInstaller.ts","../../../src/services/MetaMaskSDK/InitializerManager/handleAutoAndExtensionConnections.ts","../../../src/sdk.ts","../../../src/services/MetaMaskSDK/InitializerManager/initializeMetaMaskSDK.ts","../../../src/services/MetaMaskSDK/ConnectionManager/connect.ts","../../../src/services/MetaMaskSDK/ConnectionManager/connectWith.ts","../../../src/services/MetaMaskSDK/ConnectionManager/resume.ts","../../../../sdk-install-modal-web/dist/esm-es5/index-4b8a94c9.js","../../../../sdk-install-modal-web/dist/esm-es5/loader.js","../../../../sdk-install-modal-web/dist/loader/index.js","../../../../sdk-install-modal-web/dist/esm/polyfills/dom.js","../../../../sdk-install-modal-web/dist/esm/polyfills/index.js","../../../../sdk-install-modal-web/dist/esm/polyfills/core-js.js","../../../../sdk-install-modal-web/dist/esm-es5/simple-i18n-81e97ab4.js","../../../../sdk-install-modal-web/dist/esm-es5/index-f0bfb0c3.js","../../../../sdk-install-modal-web/dist/esm-es5/mm-install-modal.entry.js","../../../../sdk-install-modal-web/dist/esm-es5/mm-pending-modal.entry.js","../../../../sdk-install-modal-web/dist/esm-es5/mm-select-modal.entry.js"' instead. https://nextjs.org/docs/messages/amp-bind-jsx-alt
Warning: data for page "/_error" (path "/dashboard?_rsc=1wtp7") is 4.22 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/_error" (path "/dashboard?_rsc=r3yhw") is 4.22 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/_error" (path "/dashboard?_rsc=r3yhw") is 4.22 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/_error" (path "/dashboard") is 4.22 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
 GET /dashboard 500 in 999ms
 Module parse failed: Unexpected token (1:10)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

image

Expected Behavior

Successfully compiles and run the application.

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

https://github.com/StabilityNexus/FairFund/tree/reown-update/app/web-app

To Reproduce

  • cd app/web-app
  • docker compose up
  • create a .env add the necessary environment variables using .env.example
  • npm i
  • npm run dev
@code-z2
Copy link

code-z2 commented Nov 29, 2024

facing the same issue after upgrading to 0.31.0

@Gyufei
Copy link

Gyufei commented Nov 29, 2024

I don't use metamask-sdk directly, but I do use wagmi and its @wagmi/connectors use this dependency, downgrading wagmi from 2.13.2 to 2.13.0 solved my problem

@Kharabet
Copy link

same for me. Next.js + Reown AppKit, and regular create-react-app with Reown Appkit. Both uses wagmi adapter

@0xKurt
Copy link

0xKurt commented Nov 29, 2024

same for me. nextjs + rainbowkit

@AdamK222
Copy link

same

@0x33dm
Copy link

0x33dm commented Nov 30, 2024

same on personal project and when using pnpm create wagmi

@joaovictor-ferreira
Copy link

same for me. nextjs + rainbowkit

hey, are you still facing this problem?

@HarigovindM-G
Copy link

I don't use metamask-sdk directly, but I do use wagmi and its @wagmi/connectors use this dependency, downgrading wagmi from 2.13.2 to 2.13.0 solved my problem

@Gyufei Thank you mate , it works , i have been spending whole 2 days trying to wrap my head around the issue , Thanks a lot

@ecp4224
Copy link
Collaborator

ecp4224 commented Nov 30, 2024

This has been fixed in #1151 and should be now published in 0.31.1

@dylanngph
Copy link

Same here

@tjwelde
Copy link

tjwelde commented Dec 2, 2024

This is fixed now. wagmi also has updated to include this fix.

@elix1er
Copy link

elix1er commented Dec 2, 2024

jeez finally nice

@Kharabet
Copy link

Kharabet commented Dec 2, 2024

amazing! All works for me now 🙏

@ecp4224
Copy link
Collaborator

ecp4224 commented Dec 2, 2024

Wagmi has published a release to include the fixed MetaMask SDK package

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