-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Good First IssueMisc: Good First IssueMisc: Good First Issue
Description
Describe the bug
If you delete imports, Nuxt auto-imports do not work:
for example works:
<script setup lang="ts">
import { useAccount, useDisconnect } from '@wagmi/vue';
const { address, chainId, status } = useAccount();
const { disconnect } = useDisconnect();
</script>not working:
<script setup lang="ts">
const { address, chainId, status } = useAccount();
const { disconnect } = useDisconnect();
</script>Uncaught SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/[email protected]/node_modules/eventemitter3/index.js?v=2c858a2b'
does not provide an export named 'default' (at index.mjs:1:8)
Link to Minimal Reproducible Example
https://stackblitz.com/~/github.com/reslear/nuxt-wagmi-starter
Steps To Reproduce
stackblitz also not working because metask sdk issues.
-
clone repo github.com/reslear/nuxt-wagmi-starter
-
install and run dev:
pnpm install
pnpm dev
- go to
components/Account.vueand comment import line:
- see result
Wagmi Version
latest
Viem Version
latest
TypeScript Version
latest
Check existing issues
- I checked there isn't already an issue for the bug I encountered.
Anything else?
No response
Metadata
Metadata
Assignees
Labels
Good First IssueMisc: Good First IssueMisc: Good First Issue