lorisleiva / solana-wallets-vue

Solana wallet integration for Vue 3
https://solana-wallets-vue-demo.netlify.app/
173 stars 65 forks source link

Error while running #52

Open HamedTaherpour opened 1 year ago

HamedTaherpour commented 1 year ago

Hello I get this error when running Thank you for your help

X [ERROR] Failed to resolve entry for package "@fractalwagmi/popup-connection". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]

    node_modules/esbuild/lib/main.js:1373:21:
      1373 │         let result = await callback({
           ╵                      ^

    at packageEntryFailure (file:///C:/Users/ARKA/Desktop/testsol/node_modules/vite/dist/node/chunks/dep-df561101.js:28691:11)
    at resolvePackageEntry (file:///C:/Users/ARKA/Desktop/testsol/node_modules/vite/dist/node/chunks/dep-df561101.js:28688:5)
    at tryNodeResolve (file:///C:/Users/ARKA/Desktop/testsol/node_modules/vite/dist/node/chunks/dep-df561101.js:28419:20)
    at Context.resolveId (file:///C:/Users/ARKA/Desktop/testsol/node_modules/vite/dist/node/chunks/dep-df561101.js:28180:28)
    at Object.resolveId (file:///C:/Users/ARKA/Desktop/testsol/node_modules/vite/dist/node/chunks/dep-df561101.js:44207:64)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///C:/Users/ARKA/Desktop/testsol/node_modules/vite/dist/node/chunks/dep-df561101.js:65837:21
    at async file:///C:/Users/ARKA/Desktop/testsol/node_modules/vite/dist/node/chunks/dep-df561101.js:39941:34
    at async requestCallbacks.on-resolve (C:\Users\ARKA\Desktop\testsol\node_modules\esbuild\lib\main.js:1373:22)
    at async handleRequest (C:\Users\ARKA\Desktop\testsol\node_modules\esbuild\lib\main.js:729:13)

  This error came from the "onResolve" callback registered here:

    node_modules/esbuild/lib/main.js:1292:20:
      1292 │       let promise = setup({
           ╵                     ^

    at setup (file:///C:/Users/ARKA/Desktop/testsol/node_modules/vite/dist/node/chunks/dep-df561101.js:39921:19)
    at handlePlugins (C:\Users\ARKA\Desktop\testsol\node_modules\esbuild\lib\main.js:1292:21)
    at buildOrContextImpl (C:\Users\ARKA\Desktop\testsol\node_modules\esbuild\lib\main.js:978:5)
    at Object.buildOrContext (C:\Users\ARKA\Desktop\testsol\node_modules\esbuild\lib\main.js:786:5)
    at C:\Users\ARKA\Desktop\testsol\node_modules\esbuild\lib\main.js:2186:68
    at new Promise (<anonymous>)
    at Object.context (C:\Users\ARKA\Desktop\testsol\node_modules\esbuild\lib\main.js:2186:27)
    at Object.context (C:\Users\ARKA\Desktop\testsol\node_modules\esbuild\lib\main.js:2026:58)
    at prepareEsbuildOptimizerRun (file:///C:/Users/ARKA/Desktop/testsol/node_modules/vite/dist/node/chunks/dep-df561101.js:45967:35)

  The plugin "vite:dep-pre-bundle" was triggered by this import

    node_modules/@fractalwagmi/solana-wallet-adapter/dist/esm/core/fractal-wallet-adapter-impl.js:1:238:
      1 │ ...assertPayloadIsSolanaWalletAdapterApproved, DEFAULT_POPUP_HEIGHT_PX, assertPayloadIsTransactionSignatureNeededResponsePayload, } from '@fractalwagmi/popup-connection'; 
        ╵                                                                                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  

package.json

{
  "name": "testsol",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  },
  "dependencies": {
    "@fractalwagmi/popup-connection": "^1.1.1",
    "@solana/wallet-adapter-wallets": "^0.19.21",
    "solana-wallets-vue": "^0.6.0",
    "vue": "^3.3.4"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^4.2.3",
    "vite": "^4.4.5"
  }
}