wallabyjs / quokka

Repository for Quokka.js questions and issues
https://quokkajs.com
1.17k stars 31 forks source link

TypeError: value.replace is not a function  #955

Closed smallmain closed 4 months ago

smallmain commented 4 months ago

image

The typescript file reports an error directly, but the javascript file has no problem.

smallmain commented 4 months ago

maybe https://github.com/TypeStrong/ts-node/issues/2000 ?

smcenlly commented 4 months ago

Wallaby ships with the latest official version of ts-node, v10.9.2.

The last beta available for ts-node has support for multiple extends files, which I assume is the cause of your problem.

You should be able to fix this by installing the beta version for your project: npm install ts-node@11.0.0-beta.1.

It's possible that there are problems with the beta version; we haven't used or tested the beta version extensively but it appears to work. When this becomes official, we'll update Wallaby to use this version.