Build fails when consuming application uses TS exactOptionalPropertyTypes. #35280
Closed
1 task done
Labels
bug
Issue was opened via the bug report template.
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
An error is thrown when running
next build
on any TypeScript+Next app where TS'scompilerOptions.exactOptionalPropertyTypes
is set totrue
.Expected Behavior
I expect the build is complete successfully, as you can see in this screenshot after I patched it with the accompanying pull request:
To Reproduce
Set
compilerOptions.exactOptionalPropertyTypes
totrue
on any Next app, then runnext build
.The text was updated successfully, but these errors were encountered: