Closed crearis closed 5 months ago
in branch episodes/autoimports (and all other branches) the following autoimports don't work: a: nuxt-config.ts > we need to manually "import { defineNuxtConfig } from 'nuxt/config'
"import { defineNuxtConfig } from 'nuxt/config'
b: packages/theme/pages/product/[slug].vue > no composable, components, standard-vue-imports (ref ...), standard-nuxt-autimports (useHead)
same for data-layer, same for apps/tp-template
the project compiles and runs properly as far as I understand, for instance in console: [vue-tsc] Found 0 errors
[vue-tsc] Found 0 errors
We need these autoimports to work to benefit from typescript-support.
open https://verbose-funicular-g4pv5q974p5cw7pg.github.dev/
then open packages/theme/pages/product/[slug].vue
to run the project: yarn dev --filter=tp-template
yarn dev --filter=tp-template
No response
-
I've researched this and found the spot from where to solve the issue (tsconfig and layers-logic)
Describe the current status
in branch episodes/autoimports (and all other branches) the following autoimports don't work: a: nuxt-config.ts > we need to manually
"import { defineNuxtConfig } from 'nuxt/config'
b: packages/theme/pages/product/[slug].vue > no composable, components, standard-vue-imports (ref ...), standard-nuxt-autimports (useHead)
same for data-layer, same for apps/tp-template
the project compiles and runs properly as far as I understand, for instance in console:
[vue-tsc] Found 0 errors
Expected status or behavior
We need these autoimports to work to benefit from typescript-support.
Steps to reproduce
open https://verbose-funicular-g4pv5q974p5cw7pg.github.dev/
then open packages/theme/pages/product/[slug].vue
to run the project:
yarn dev --filter=tp-template
CrearisUI version
No response
Node version
-
Browser
-
OS
-
Relevant log output
No response