Relative Content

Tag Archive for vue.jsnuxt.js

Can’t access Nuxt Studio data inside of Nuxt application

I have this nuxt.schema.ts it loads perfectly on https://nuxt.studio without any issues and I can alter the options, how do I access this object in my app? If I use const config = useAppConfig() it just gets the locally defined app config and doesn’t access the details from the studio.

Nuxt3, lifecycle hooks and setup

Which way is better to use to call fetch requests? Call fetch request in lifecycle hooks (onBeforeMount, onMounted etc.) or just in setup like this

Nuxt 3 + ShadcnVue “Invalid configuration found in components.json.”

I use Nuxt 3.3 and Shadcn Vue. When trying to install another Shadcn component via “npx shadcn-ui@latest add sheet” I get this error message; “Invalid configuration found in [MYPATH]/components.json.”. It just stopped to work, days before it worked fine. I tried a re-install and init of ShadcnVue several times.

Nuxt 3.11 stuck at Starting Nuxt

I cant run nuxt project, when I run “npm run dev”, there’s error:
RollupError: virtual:#internal/nitro/virtual/server-handlers (1:45): Expected ‘,’, got ‘s’ (Note that you need plugins to import files that are not JavaScript)
Error description