Nuxt auto imports: useToast is not defined
I've tried to replicate this on stackblitz but it's only happening locally when I'm developing.
Unless I explicitly import useToast like this:-
import { useToast } from "#ui/composables/useToast";
when I run my app, I get:-
500
useToast is not defined
This also applies to useOverlay and useLocale. So something is wrong in my setup but I can't figure out what it could be.
Here is my nuxt info:-
- Operating System:
- Node Version:
- Nuxt Version:
- CLI Version:
- Nitro Version:
- Package Manager:
- Builder:
- User Config:
- Runtime Modules:
- Build Modules:
Any ideas?
Unless I explicitly import useToast like this:-
import { useToast } from "#ui/composables/useToast";
when I run my app, I get:-
500
useToast is not defined
This also applies to useOverlay and useLocale. So something is wrong in my setup but I can't figure out what it could be.
Here is my nuxt info:-
- Operating System:
Darwin- Node Version:
v20.19.0- Nuxt Version:
4.1.3- CLI Version:
3.29.3- Nitro Version:
2.12.7- Package Manager:
yarn@1.22.22- Builder:
-- User Config:
compatibilityDate, devtools, devServer, app, css, modules, apiParty, auth, googleFonts, svgo, runtimeConfig- Runtime Modules:
@nuxt/ui@4.0.1, nuxt-svgo@4.2.6, @nuxtjs/google-fonts@3.2.0, @sidebase/nuxt-auth@1.1.0, nuxt-api-party@3.4.1- Build Modules:
-Any ideas?
