-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
Failed to compile #20626
Comments
I don't know how Typescript is playing into this, but the error mentions that the config object can't be dynamically modified: https://github.com/vercel/next.js/blob/master/errors/invalid-page-config.md#possible-ways-to-fix-it |
I tried compile them with ts, and the compiled js is exactly same. a.ts import { PageConfig } from 'next';
export const config = {
} as PageConfig; b.ts import { PageConfig } from 'next';
export const config: PageConfig = {
}; a.js "use strict";
exports.__esModule = true;
exports.config = void 0;
exports.config = {}; b.js "use strict";
exports.__esModule = true;
exports.config = void 0;
exports.config = {}; |
…#32702) fixes vercel#20626 No changes needed in next-swc, see comments from @kdy1 below. Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: