Open
Description
Vue version
3.5.12
Link to minimal reproduction
https://github.com/jacobg/vue-project-ts
Steps to reproduce
Since updating Vue 3.4 to 3.5, I'm seeing build errors like this:
src/components/MyComponent.vue:1:1 - error TS9006: Declaration emit for this file requires using private name 'RawSymbol' from module '"/Users/j/repositories/f/console/node_modules/@vue/reactivity/dist/reactivity"'. An explicit type annotation may unblock declaration emit.
<template>
That particular component uses markRaw
and toRaw
.
But the vue sfc file only uses <script>
and not <script lang="ts">
, so such an error is not expected.
In the tsconfig.app.json
file if:
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
is changed to:
"include": ["env.d.ts", "src/**/*.ts"],
then the errors goes away.
What is expected?
No build error
What is actually happening?
Error TS9006
System Info
No response
Any additional comments?
No response