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

vite-plugin-vue-svg is not supported for @vue/compiler-sfc 3.2.2 #52

Open
thunderstreak opened this issue Aug 12, 2021 · 1 comment
Open

Comments

@thunderstreak
Copy link

Vite run build error:

Uncaught SyntaxError: The requested module '/node_modules/.vite/vue.js?v=4be5e010' does not provide an export named 'createElementBlock'

image

This is my package.json :
{
"version": "1.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"serve": "vite preview"
},
"dependencies": {
"@vue/cli-service": "^4.5.13",
"ant-design-vue": "^2.2.1",
"axios": "^0.21.1",
"dayjs": "^1.10.6",
"less": "^4.1.1",
"mitt": "^3.0.0",
"qs": "^6.10.1",
"sass": "^1.35.1",
"swiper": "^6.7.5",
"vite-plugin-style-import": "^1.0.1",
"vue": "^3.0.5",
"vue-aliplayer-v2": "^1.3.0",
"vue-cropper": "^1.0.0",
"vue-router": "^4.0.10",
"vuex": "^4.0.2",
"web-downloadfile": "^0.0.1"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.2.4",
"@vue/compiler-sfc": "^3.2.2",
"lodash-es": "^4.17.21",
"vite": "^2.4.0",
"vite-plugin-vue-svg": "^0.1.0"
}
}

@yisibell
Copy link

try this https://github.com/yisibell/vite-plugin-svg4vue for vite3 / vite4 and vue3

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