Johnson
Johnson
This works for me with Vue CLI + Vue 3 + TypeScript: ```ts // shims-vue.d.ts declare module 'wave-ui' { export default WaveUI } ```
A temporary solution is to remove `vue-tsc` for running `yarn build` in the project.
@Catchyou1 Hi, please give me more details about your environment and setup. :)
@Catchyou1 It seems that the problem comes from your OSS settings. Sorry, I think I can't help with this situation. Besides, it's also not related to this issue.
In version 0.5.1, the `vue-tsc --noEmit` error is as follows: ```bash node_modules/vue-dapp/dist/index.d.ts:85:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier. 85...
Closing as this issue has gone stale.
@kohoj Yeah, it is v0.6.8 https://github.com/chnejohnson/vue-dapp/blob/9a948222a60622f8b339c50877ab41e10aabbcb1/yarn.lock#L3137-L3139
MetaMask's disconnect event would be triggered when some chain changed, like Polygon or Arbitrum. So I excluded the disconnect function when using MetaMask. https://github.com/chnejohnson/vue-dapp/blob/650b021d3834fece88309b63781a2fe6369fda23/src/composables/useWallet.ts#L89-L99 Besides, MetaMask doesn't support programmatic disconnect,...
@YCL686 Why do you do this `signer.value.connect(wallet.provider)`? The `signer.value` is null before the wallet is connected. So if you want to make sure the `signer.value` has value, you can write...
@JABirchall @re2005 I tried to implement the feature https://github.com/chnejohnson/vue-dapp/commit/5ad43f82a49745cef33708b37c60ea8bca97f5f4 though it only checks metamask provider once. Please help me review the code and make sure it meets your needs. Thanks