-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Docs: Next Config Support For (Or Note not Supporting) next.config.mts #70201
Labels
Comments
Potentially related: |
@uhrohraggy We should go with #1 and #4.
We could have a similar warning when we see a |
samcx
added a commit
that referenced
this issue
Sep 24, 2024
…supported yet) (#70376) ## Why? We should update our documentation and also throw an error if somebody tries to use the `.mts` ( ES Module TypeScript) extension with `next.config`. We currently don't support this extension. - Fixes: #70201 --------- Co-authored-by: JJ Kasper <[email protected]>
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What is the documentation issue?
https://nextjs.org/docs/pages/api-reference/next-config-js mentions the
next.config.mjs
extension as well as using the TypeScriptnext.config.ts
. I know this is likely PEBKAC, but with the Next.js 14 default beingnext.config.mjs
, I assumed that I could be explicit and change this tonext.config.mts
.However, running
next build
actually ignores this file without complaints and assumes the defaults as if this file doesn't exist. For example, setting this innext.config.mts
is ignored and the build is created in the
.next
directory.Is there any context that might help us understand?
I'm not sure of the proper solution, but one of
next.config.mts
isn't supported and will be ignorednext.config.mts
support is planned for, provide a note in the documentation.next.config.mts
support was expected to work, turn this documentation issue into a bug.next.config.mts
and provide a build log if found on how to resolveDoes the docs page already exist? Please link to it.
https://nextjs.org/docs/pages/api-reference/next-config-js
The text was updated successfully, but these errors were encountered: