-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Doesn't work with Vite 2 #6
Comments
Use |
@aleclarson its doesn't seem to work.
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [vue(), tsconfigPaths()]
})
import HelloWorld from '@/components/HelloWorld.vue'
My full package.json, for reference: {
"name": "my-project",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vuedx-typecheck . && vite build"
},
"dependencies": {
"vue": "^3.0.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.0.4",
"@vue/compiler-sfc": "^3.0.5",
"@vuedx/typecheck": "^0.4.1",
"@vuedx/typescript-plugin-vue": "^0.4.1",
"typescript": "^4.1.3",
"vite": "^2.0.0-beta.12",
"vite-tsconfig-paths": "^2.0.0"
}
} Edit: the solution from vitejs/vite#88 (comment) works, but I'd rather your use your plugin to avoid keeping both files in sync when I'll add more aliases :) |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The plugin doesn't work with Vite 2:
It also seems that
resolvers
is not more a valid property atvite.UserConfig
.The text was updated successfully, but these errors were encountered: