-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
import config in _app raises https://err.sh/vercel/next.js/invalid-page-config #16775
Comments
I'd like to work on this issue. May I give it a shot? |
This looks like a regression, can you verify it builds fine in 9.5.2? |
I'm experiencing what appears to be a similar issue - here's a minimal example:
{
"name": "nextjs-test-case",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "digitalagedragon",
"license": "0BSD",
"dependencies": {
"next": "=9.5.3",
"react": "^16.13.1",
"react-dom": "^16.13.1"
}
}
import Head from "next/head";
import { config } from '../config';
export async function getServerSideProps() {
}
export default function Page() {
return (
<>
<Head>
</Head>
</>
);
}
This builds successfully with Next 9.5.2, or if the |
I'm not exactly sure, which 9.5.2 canary version raised the issue, I guess something around |
Hi, this is most likely related to this PR, starting with adding the case where this error is incorrectly being shown to this test suite would be good |
I think this issue is beyond my skill level. Am not going anywhere with this. Someone else should take this up. |
This is causing my builds to fail after the 9.5.3 update.
in one of my pages and it fails to build with
My |
This corrects detecting of invalid page config exports and adds additional test cases for non-invalid config import/exports Closes: #16775
I'm also encountering this issue What should we do? Use a 4.5.3 canary version? Use a lower version until it's released as non-canary version? Edit FYI: Using |
I got this error after updating to import { config as MyConfig } from '@my-config` |
Migrate to v9.5.3 is not possible due to [this bug](vercel/next.js#16775), app will be migrated to a canary version for now.
Migrate to v9.5.3 is not possible due to [this bug](vercel/next.js#16775), app will be migrated to a canary version for now.
This corrects detecting of invalid page config exports and adds additional test cases for non-invalid config import/exports Closes: vercel#16775
This issue has been automatically locked due to no recent activity. 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
I use the package
@fortawesome/fontawesome-svg-core
and since nextjs 9.5.3 it causes an error, due to this code in_app
:The error:
Is this behavior expected?
Workaround
An alias named import solves the issue:
The text was updated successfully, but these errors were encountered: