-
Notifications
You must be signed in to change notification settings - Fork 27.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support TypeScript 4.9 #42978
Comments
ijjk
pushed a commit
that referenced
this issue
Nov 20, 2022
This PR updates swc crates to swc-project/swc@a4ed624 --- - Closes #42978 - Closes #42801 <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/202788043-4ba0c3a4-b4c5-43e7-8eb3-42b8341e5d5f.png"> - Closes #43027 <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/202788522-e4884f91-c83c-45e8-983a-f210144effef.png"> - Closes #43042 <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/202788866-2c319588-5a01-4628-95cc-47bb51e19153.png"> - Closes #43060 <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/202789993-2bf3af55-9752-4aa8-bcc2-98f08ecd47b7.png"> - Closes #42852 <img width="1840" alt="image" src="https://user-images.githubusercontent.com/29931815/202804509-88bb3d55-182d-457d-b59e-d12b30c52100.png">
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
next dev
ornext start
Describe the Bug
I imagine you might have this on your radar, but I wanted to create this issue to track the progress. TypeScript 4.9 added a satisfies operator that greatly improves type specificity, but Next.js throws an error when trying to use
satisfies
:Support for
satisfies
specifically was created as an issue that was moved to a Discussion: #40895It looks like Next.js is currently on @swc/core 1.2.203, and TypeScript 4.8.2, and TypeScript 4.9 support wasn't added until swc 1.3.3. I'm guessing these versions need to be bumped in order to support TypeScript 4.9.
Expected Behavior
Should be able to use TypeScript 4.9.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
To Reproduce
Create a project with Typescript 4.9, and attempt to use the
satisfies
operator.The text was updated successfully, but these errors were encountered: