-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent results between app directory and pages directory when typechecking #53276
Comments
Based on contentlayerdev/contentlayer#506 (comment), this is not a problem at least in later versions, make sure you upgrade (please test Keep in mind that https://nextjs.org/docs/app/api-reference/next-config-js/webpack |
Please verify that your issue can be recreated with Why was this issue marked with the
|
This issue has been automatically closed because it wasn't verified against next@canary. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you. |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
TypeScript (plugin, built-in types)
Link to the code that reproduces this issue or a replay of the bug
https://stackblitz.com/edit/github-38v7yj-w6w7em?file=next.config.mjs
To Reproduce
Describe the Bug
Typescript checking is done before webpack compile. Anyone relying on prebuild hook will not have generated their types.
This might be a Windows only bug as I could not reproduce on the stackblitz
Expected Behavior
Either a new hook is created for "pre-build" or typechecking should
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: