Skip to content

Comments

fix incrrect module path#1

Open
uu-z wants to merge 2 commits intobinance-chain-npm:mainfrom
uu-z:main
Open

fix incrrect module path#1
uu-z wants to merge 2 commits intobinance-chain-npm:mainfrom
uu-z:main

Conversation

@uu-z
Copy link

@uu-z uu-z commented May 19, 2021

The current incorrect module path will cause a vitejs compilation error.

yarn run v1.22.10
$ vite
 > node_modules/vite/dist/node/chunks/dep-1bdbec90.js:34388:14: error: [vite:dep-scan] Failed to resolve entry for package "@binance-chain/bsc-connector". The package may have incorrect main/module/exports specified in its package.json.
    34388 │         throw new Error(`Failed to resolve entry for package "...
          ╵               ^
    at resolvePackageEntry (/Users/koishi/project/web-mimo-v2-dapp/node_modules/vite/dist/node/chunks/dep-1bdbec90.js:34388:15)
    at tryNodeResolve (/Users/koishi/project/web-mimo-v2-dapp/node_modules/vite/dist/node/chunks/dep-1bdbec90.js:34225:11)

   node_modules/vite/dist/node/chunks/dep-1bdbec90.js:46233:18: note: This error came from the "onResolve" callback registered here
    46233 │             build.onResolve({
          ╵                   ~~~~~~~~~
    at setup (/Users/koishi/project/web-mimo-v2-dapp/node_modules/vite/dist/node/chunks/dep-1bdbec90.js:46233:19)
    at handlePlugins (/Users/koishi/project/web-mimo-v2-dapp/node_modules/esbuild/lib/main.js:676:7)

@uu-z uu-z marked this pull request as ready for review May 19, 2021 11:39
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

Successfully merging this pull request may close these issues.

1 participant