antlr4ts-sql icon indicating copy to clipboard operation
antlr4ts-sql copied to clipboard

TypeError: Class extends value undefined is not a constructor or null when using yarn pnp and typescript4

Open chengchengpei opened this issue 3 years ago • 1 comments

More details can be found https://stackoverflow.com/questions/74870072/typeerror-class-extends-value-undefined-is-not-a-constructor-or-null-when-using

I am also trying to use antlr4-c3 in my project too, but got similar errors. I guess my yarn pnp or jest not set up properly.

please provide help. thanks

chengchengpei avatar Dec 21 '22 00:12 chengchengpei

It looks like you haven't set Jest up correctly for running Typescript tests, you can use ts-jest or follow the Babel configuration described in the Jest docs.

mtriff avatar Dec 21 '22 20:12 mtriff