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:
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?