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.
error in console :
Uncaught ReferenceError: Cannot access 'commonOwner' before initialization
at optionFactoryContract.ts:3:22
client.ts:103 [vite] server connection lost. polling for restart...
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.error in console :
Reproduction
https://stackblitz.com/edit/vitejs-vite-ep9btn?file=src%2Fcomposables%2FuseContract.ts
test step:
System Info
Used Package Manager
npm
Validations