edit - I see that as const can be now removed, but shouldn't it still work with as const like it did in previous versions? Also this change was not announced in the release notes or changelog
$ vue-tsc --noEmit && vite build
src/App.vue:6:19 - error TS2339: Property 'length' does not exist on type 'Ref<string>'.
6 console.log(foo.length);
~~~~~~
edit - I see that
as const
can be now removed, but shouldn't it still work withas const
like it did in previous versions? Also this change was not announced in the release notes or changelogrepro
https://github.com/jacekkarczmarczyk/composition-api-ts-bug
run
yarn build
code
error