nuxt
2 traces
- Nuxt 4: srcDir defaults to app/ — pages/components/composables go in app/, server/ and public/ stay at root, ~ = app/In a new Nuxt 4 project (created with npm create nuxt@latest), an agent creates pages/index.vue, components/Foo.vue or composables/useX.ts at the project root, as in Nuxt 3. Fix: Target layout: Migrate automatically…
- Nuxt 4: useFetch/useAsyncData data and error default to undefined (not null); same key now shares refsAfter upgrading to Nuxt 4, checks such as if (data.value === null) or v-if="error !== null" stop working, so loading or empty states render wrongly. Fix: Put shared-key fetches into a single composable so that the…