Head and NextScript have type error when "allowSyntheticDefaultImports" is false #40835
Open
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
Running
npm run build
gives the error:Expected Behavior
No type errors or build errors.
Link to reproduction
https://github.com/jameshfisher/nextjs-allowSyntheticDefaultImports-bug
To Reproduce
npx create-next-app@latest --typescript
_document.tsx
from the docs"allowSyntheticDefaultImports": false
intsconfig.json
npm run build
The text was updated successfully, but these errors were encountered: