You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug]: File was processed with these loaders: [1] * ./node_modules/babel-loader/lib/index.js | You may need an additional loader to handle the result of these loaders.
#1206
when i install this package it install without any error but when in check it in node modules it is not available the.but how compiler does not show error undefined object.
how it import package and give this error
./node_modules/@metamask/sdk-react/dist/esm/index.js 20422:249
[1] Module parse failed: Unexpected token (20422:249)
[1] File was processed with these loaders:
[1] * ./node_modules/babel-loader/lib/index.js
[1] You may need an additional loader to handle the result of these loaders.
[1] | };
[1] | return (n, r, i) => {
[1] > t.ethDecryptDeprecation || "eth_decrypt" !== n.method ? t.ethGetEncryptionPublicKeyDeprecation || "eth_getEncryptionPublicKey" !== n.method ? !t.walletWatchAssetNFTExperimental && "wallet_watchAsset" === n.method && [xk, Ak].includes(n.params?.type || "") && (e.warn(Tk.warnings.rpc.walletWatchAssetNFTExperimental), t.walletWatchAssetNFTExperimental = !0) : (e.warn(Tk.warnings.rpc.ethGetEncryptionPublicKeyDeprecation), t.ethGetEncryptionPublicKeyDeprecation = !0) : (e.warn(Tk.warnings.rpc.ethDecryptDeprecation), t.ethDecryptDeprecation = !0), i();
[1] | };
[1] | }
SDK
Web
Provide environment information
i created my react project with
create-react-app
when i import this package in index.js
import { MetaMaskProvider } from "@metamask/sdk-react"
i get followig error:
here is my package json:
i am using node version 20
i run command
npm outdated
MetaMask SDK Version
0.30.0
MetaMask Mobile app Version
n/a
What browser are you using? (if relevant)
chrome - Version 120.0.6099.62 (Official Build) (64-bit)
How are you deploying your application? (if relevant)
No response
Describe the Bug
i created my react project with
create-react-app
when i import this package in index.js
import { MetaMaskProvider } from "@metamask/sdk-react"
i get followig error:
Expected Behavior
expected to load app
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
No response
To Reproduce
i created my react project with
create-react-app
when i import this package in index.js
import { MetaMaskProvider } from "@metamask/sdk-react"
i get followig error:
The text was updated successfully, but these errors were encountered: