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
can'n start dev server, according to my tests, this problem is related to the composables/useContract function. It should be caused by the fact that useContract has the same name as the parameter in sdk/util/common.ts. When I try to delete default in useContract After that, this error will not occur. This may also be related to the logic of auto-import.
Additional context
No response
Logs
500
__vite_ssr_import_0__.commonOwner is not a function
at ./sdk/ethereum/optionFactoryContract.ts:3:37
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ViteNodeRunner.runModule (/Users/l.rain/Documents/workspace/deorderbook-monorepo/node_modules/.pnpm/vite-node@1.4.0_@types+node@18.19.17/node_modules/vite-node/dist/client.mjs:362:5)
at async ViteNodeRunner.directRequest (/Users/l.rain/Documents/workspace/deorderbook-monorepo/node_modules/.pnpm/vite-node@1.4.0_@types+node@18.19.17/node_modules/vite-node/dist/client.mjs:346:5)
at async ViteNodeRunner.cachedRequest (/Users/l.rain/Documents/workspace/deorderbook-monorepo/node_modules/.pnpm/vite-node@1.4.0_@types+node@18.19.17/node_modules/vite-node/dist/client.mjs:189:14)
at async ViteNodeRunner.dependencyRequest (/Users/l.rain/Documents/workspace/deorderbook-monorepo/node_modules/.pnpm/vite-node@1.4.0_@types+node@18.19.17/node_modules/vite-node/dist/client.mjs:233:12)
at async ./store/wallet.ts:2:31
at async ViteNodeRunner.runModule (/Users/l.rain/Documents/workspace/deorderbook-monorepo/node_modules/.pnpm/vite-node@1.4.0_@types+node@18.19.17/node_modules/vite-node/dist/client.mjs:362:5)
at async ViteNodeRunner.directRequest (/Users/l.rain/Documents/workspace/deorderbook-monorepo/node_modules/.pnpm/vite-node@1.4.0_@types+node@18.19.17/node_modules/vite-node/dist/client.mjs:346:5)
at async ViteNodeRunner.cachedRequest (/Users/l.rain/Documents/workspace/deorderbook-monorepo/node_modules/.pnpm/vite-node@1.4.0_@types+node@18.19.17/node_modules/vite-node/dist/client.mjs:189:14)
The text was updated successfully, but these errors were encountered:
Environment
stackblitz
Reproduction
https://stackblitz.com/edit/nuxt-starter-i3vypr?file=composables%2FuseContract.ts
Describe the bug
can'n start dev server, according to my tests, this problem is related to the
composables/useContract
function. It should be caused by the fact thatuseContract
has the same name as the parameter insdk/util/common.ts
. When I try to deletedefault
inuseContract
After that, this error will not occur. This may also be related to the logic of auto-import.Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: