Replies: 19 comments 3 replies
-
SWC compiler already supports TS 4.9: swc-project/swc#5938 Waiting for Next.js to bump the version. |
Beta Was this translation helpful? Give feedback.
-
Is there an ETA on this given TS 4.9's GA? It's been a couple of weeks. |
Beta Was this translation helpful? Give feedback.
-
Any update on an ETA for this? Finally found the perfect use-case for the new |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to update Next.js 12 to support TypeScript 4.9? We still can't update to Next.js 13 and wont be able to for quite some time |
Beta Was this translation helpful? Give feedback.
-
Example of us trying and failing to get this to work. Here’s the specific bit of code:
The TS playground suggests |
Beta Was this translation helpful? Give feedback.
-
Good day, i have the same issue on NEXT 12, would be glad to find a solution |
Beta Was this translation helpful? Give feedback.
-
Plus one unfortunately. 12.2.5 |
Beta Was this translation helpful? Give feedback.
-
Still an Issue on |
Beta Was this translation helpful? Give feedback.
-
Is there any way to pin a new version of SWC without waiting for next itself to update? I'm guessing not since they have their own SWC package. We are also on 12.3.4 and having this issue. I'm wondering if things like this will start to come to v13 only |
Beta Was this translation helpful? Give feedback.
-
Why was this moved to a discussion? There's nothing to discuss here. Next.js is lagging behind in Typescript support. |
Beta Was this translation helpful? Give feedback.
-
Tried updating and pinning all my Babel versions to either the latest or As I've seen that updating the babel versions does work in other, non-next.js projects, I'm inclined to assume that either:
|
Beta Was this translation helpful? Give feedback.
-
Any updates @balazsorban44? |
Beta Was this translation helpful? Give feedback.
-
You have |
Beta Was this translation helpful? Give feedback.
-
12.3.4 still an issue |
Beta Was this translation helpful? Give feedback.
-
next.config.js ...
experimental: {
swcPlugins: [['next-superjson-plugin', {}]],
}
... package.json ...
"next": "13.4.12",
"@swc/core": "^1.3.59",
"next-superjson-plugin": "^0.5.10"
"typescript": "^5.1.6"
... |
Beta Was this translation helpful? Give feedback.
-
If it still doesn't work for you with babel - check that you don't have |
Beta Was this translation helpful? Give feedback.
-
In case anyone still having issues and looking for a solution, try to upgrade next.js to the latest minor/patch version of v13: |
Beta Was this translation helpful? Give feedback.
-
Still having this issue in 12.3.4 |
Beta Was this translation helpful? Give feedback.
-
is the only possible solution to upgrade to Nextjs 13? |
Beta Was this translation helpful? Give feedback.
-
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
When using the new
satisfies
TypeScript operator, the compiler won't build the app as it doesn't understand the syntax.Documentation for operator: https://devblogs.microsoft.com/typescript/announcing-typescript-4-9-beta/#the-satisfies-operator
Code:
Result:
Expected Behavior
The build works
Link to reproduction
n/a, you just need to use the satisfies keyword
To Reproduce
satisfies
).yarn build
Beta Was this translation helpful? Give feedback.
All reactions