You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think I need a replay, it just seems like I'm missing something.
Describe the bug
TS2792: Cannot find module '#build/services/generated/auth'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
At the same time, the imports are all correct, I can get into each folder along this path.
When importing '../../../*' everything works ok.
How do I make an auto-import to a custom folder?
Or at least remove the error above.
Environment
Reproduction
I don't think I need a replay, it just seems like I'm missing something.
Describe the bug
TS2792: Cannot find module '#build/services/generated/auth'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
At the same time, the imports are all correct, I can get into each folder along this path.
When importing '../../../*' everything works ok.
How do I make an auto-import to a custom folder?
Or at least remove the error above.
Additional context
tsconfig
{
"extends": "./.nuxt/tsconfig.json",
"moduleResolution":"node",
}
nuxt.config.ts
export const sharedConfig = {
devtools: { enabled: true },
rootDir: __dirname,
modules: ['@element-plus/nuxt', '@pinia/nuxt'],
elementPlus: {
importStyle: 'scss',
themes: ['dark'],
},
plugins: ['plugins/ofetch', 'plugins/store'],
pinia: {
storesDirs: ['./sharedStore/*'],
},
// IT IS NOT WORK
imports: {
dirs: ['services'],
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData:
@use "../../assets/styles/typography.scss" as *; @use "../../assets/styles/index.scss" as *; @use "../../assets/styles/themes.scss" as *; @use "../../assets/styles/elements-rewrite.scss" as *; @use "../../assets/styles/elements-colors.scss" as *; @use "../../assets/styles/fonts.scss" as *;
,},
},
},
},
}
Logs
The text was updated successfully, but these errors were encountered: