This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Bug for using script setup components #61
Closed
Description
https://github.com/xiaoxiangmoe/volar-vue2/tree/bug-unplugin-vue2-script-setup
App.vue
is a normal component, and it is using HelloWorld.vue
, which is a setup component.
yarn install
yarn build
[unplugin-vue2-script-setup] <script setup> language must be the same as <script>
file: /Users/zhaojinxiang/repos/vue2-project/src/App.vue
error during build:
SyntaxError: <script setup> language must be the same as <script>
at parseSFC (/Users/zhaojinxiang/repos/vue2-project/node_modules/unplugin-vue2-script-setup/dist/chunk-54VX22Y6.js:245:11)
at transformVue (/Users/zhaojinxiang/repos/vue2-project/node_modules/unplugin-vue2-script-setup/dist/chunk-54VX22Y6.js:673:15)
at transform (/Users/zhaojinxiang/repos/vue2-project/node_modules/unplugin-vue2-script-setup/dist/chunk-54VX22Y6.js:657:12)
at Object.transform (/Users/zhaojinxiang/repos/vue2-project/node_modules/unplugin-vue2-script-setup/dist/chunk-54VX22Y6.js:712:16)
at Object.plugin.transform (/Users/zhaojinxiang/repos/vue2-project/node_modules/unplugin/dist/index.js:67:25)
at /Users/zhaojinxiang/repos/vue2-project/node_modules/rollup/dist/shared/rollup.js:22620:25
error Command failed with exit code 1.
Metadata
Metadata
Assignees
Labels
No labels