Closed fc closed 1 year ago
One way to address this is to compare the version of typescript that is installed in node_module vs the version of typescript used by tsd
?
I guess this issue is not caused by the plugin. Feel free to reopen with a minimal reproduction.
Describe the bug
When using this plugin I get a number of type errors that don't seem to be honoring my tsconfig.json.
I'm using TS 4.6 and when I specify es2022 in
lib
oftsconfig.json
it generates this error which doesn't make sense since TS 4.6 is when es2022 was added to it (it also displays es2022 when I do --help oftsc
).And... I found the problem and solution: I was using an old version of
tsd
that was using an old version oftypescript
.So if someone runs into this error, just upgrade tsd.
Reproduction
Make a vite app using latest version of TS 4.6 that uses an array with the
at
method and use version 0.17 oftsd
Expected behavior
No errors
System Info
Additional context
No response
Validations