Open qertis opened 1 year ago
I try to connect metaplex for my application and get Reference error.
My code
import { Metaplex } from '@metaplex-foundation/js' import { Connection, clusterApiUrl, Keypair } from '@solana/web3.js' const NETWORK = clusterApiUrl('devnet') export const connection = new Connection(NETWORK) console.log(Metaplex)
Libs in dependencies
"typescript": "~5.0.4", "vite": 3.2.6, "quasar": 2.12.0, "@metaplex-foundation/js": "0.19.4",
Output:
Vite warn message: https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility
This https://github.com/metaplex-foundation/js/issues/534#issuecomment-1781950976 solved it for me.
I try to connect metaplex for my application and get Reference error.
My code
Libs in dependencies
Output:
Vite warn message: https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility