Closed csantos1113 closed 1 year ago
I'm not sure how many people have this issue experience. I'm on Typescript 4.5.2 and getting the same error, and the error came out from no where.
I'm not sure how many people have this issue experience. I'm on Typescript 4.5.2 and getting the same error, and the error came out from no where.
If you're using VS Code you can switch to the workspace version of TypeScript, by default it will use VS Code's version.
@domcoleman Thank you! That worked for me 😁
Any update? The both version of typescript (vsc and node_modules) are reporting this error.
What is the stable version for stitches?
Any update? The both version of typescript (vsc and node_modules) are reporting this error.
What is the stable version for stitches?
@gabrieloureiro You're using the same TypeScript versions in both cases - this can be easily spotted on the screenshot you attached. The last TS version which doesn't throw errors is 4.7.4
. Find your package.json
file and force appropriate TS version, then reinstall packages and select one from node_modules
.
Any update? The both version of typescript (vsc and node_modules) are reporting this error. What is the stable version for stitches?
![]()
@gabrieloureiro You're using the same TypeScript versions in both cases - this can be easily spotted on the screenshot you attached. The last TS version which doesn't throw errors is
4.7.4
. Find yourpackage.json
file and force appropriate TS version, then reinstall packages and select one fromnode_modules
.
The version 4.7.4 works well for me. Thank you @jakubzet.
Since this has changed between 4.7 and 4.8 - is there any TS issue to track this specific regression/change on their side?
To anyone still using stitches like me, and wanting to upgrade TypeScript, do this:
patch-package
npm packagepatches
folder in the same folder you have your package.json
patches
folderprepare
script in package.json
add patch-package
commandnpm run prepare
All thanks should go to @jgoz (who fixed that) and @gajus (who created a patch file I slightly modifed). I hope did not miss anyone.
Bug report
Describe the bug
using
PropertyValue
for defining a custom util in TypeScript 4.8.2 generates the following typescript error:To Reproduce
I cannot reproduce this in codesandbox because I can't change the TypeScript version (See: https://github.com/codesandbox/codesandbox-client/issues/942)
Expected behavior
I should be able to use
PropertyValue
on TS 4.8.2Screenshots
System information