Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paths dont works into tsconfig.json #3740

Closed
Maurizio97 opened this issue Nov 18, 2023 · 1 comment
Closed

Paths dont works into tsconfig.json #3740

Maurizio97 opened this issue Nov 18, 2023 · 1 comment

Comments

@Maurizio97
Copy link

Maurizio97 commented Nov 18, 2023

{ "baseUrl": ".", "paths": { "@views/*": ["src/views/*"], "@components/*": ["src/components/*"] } }

I'm trying to import the component like this
import Home from '@views/Home.vue'

but when I go to insert it I get this error
Failed to resolve import "@views/Home.vue" from "src/routes/Router.ts". Does the file exist?

@matthias-glatthorn
Copy link

I have the same Problem. I'm already using take over mode instead of VSCode built-in TS plugin. Still get this error. I don't get this error in a .ts file. Only in a .vue file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants