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

Error while running #52

Open
HamedTaherpour opened this issue Sep 7, 2023 · 0 comments
Open

Error while running #52

HamedTaherpour opened this issue Sep 7, 2023 · 0 comments

Comments

@HamedTaherpour
Copy link

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"
  }
}
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

1 participant