Property 'addCount' does not exist on type '{}'.ts(2339)
syymo opened this issue · comments
syymo commented
自己 搭建环境 和 使用 https://github.com/antfu/unplugin-vue2-script-setup/tree/main/playground 都会出现同样问题
黎健锋 commented
+1
ZHAO Jin-Xiang commented
看看 7da9502 是不是解决你们的问题了。
黎健锋 commented
感谢
WaynePluto commented
感谢,就是修改下tsconfig.json
"vueCompilerOptions": { "target": 2, },
Lucero del Alba commented
The solution by @WaynePluto works.
That's because experimentalCompatMode
has been deprecated, so target
must be used instead.
The Support Vue 2 template section on the doc should be updated accordingly.
Best!