Subscribe on changes!

Bug: MatchAll property does not exist on type Symbol, TypeScript es2020

avatar
Oct 19th 2020

Version

3.0.1

Reproduction link

https://github.com/dipsaus9/vue-3-ts-bug

Steps to reproduce

When injecting data from the inject method in Vue 3 the tsc build fails. When running Vue CLI everything works but after a tsc run the build fails, Property 'matchAll' does not exist on type 'SymbolConstructor'. The origin is from the reactive file in the vue setup. This loads a matchAll property that does not exist in TypeScript.

What is expected?

After a tsc build it should export a JS file

What is actually happening?

It returns a error: Property 'matchAll' does not exist on type 'SymbolConstructor'

avatar
Oct 19th 2020

You error probably is due to your tsc being a global installation of an older version of TS.

Also, the tsconfig.json is used by the CLI and won't work with a plain tsc anyway, since it doesn't know how to handle *.vue files.