-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Labels
Description
Describe the bug
While using two top-level script blocks in SFC, there appear TS errors in the console after vite build
that go from @vue/test-utils
typings. Those errors depend on the trailing coma from the first script block.
To Reproduce
Reproduction repo
Steps:
pnpm i
pnpm run test:unit # test will pass
pnpm run build # will fail, see the type errors
Then go to HelloWorld.vue
and remove a trailing comma in line 4.
Perform the steps above and the build error will dissapear.
Expected behavior
Type errors do not appear and do not depend on the trailing comma in the top-level script
Related information:
@vue/test-utils
version: 2.0.0-rc.18Vue
version: 3.2.26node
version: 14.17.6pnpm
version: 6.25.1
Additional context