Reputation: 1
I am experiencing an issue with the autocomplete feature in VSCode. I am developing a React app and not using TypeScript. After setting up path aliases, the auto-import functionality is not working correctly, and I'm looking for help.
📌 Environment
- VSCode version : 1.92.1
- OS version : Windows 10
I am using React + Vite + JavaScript.
Problem Situation
export default Input
.steps I have set up
vite.config.js
configurationexport default defineConfig({
plugins: [react()],
resolve: {
alias: [
{ find: "@", replacement: "/src"}
]
}
})
jsconfig.json
configuration{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": [
"src/*"
]
}
}
}
Upvotes: 0
Views: 157