-
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
Pages Router + getInitialProps = Static worker unexpectedly #55817
Comments
Same error after upgrade Next.js from
|
Same here but without Pages router and SSR only (ServerSideProps everywhere)
Removing This is 100% from the docs: |
Good find. I'm also running this on a project that uses a custom next.js/examples/with-sentry/pages/_error.tsx Lines 21 to 28 in ed6e801
|
i have the same issue, seems to be introduced in 13.5, 13.4 seems to be working fine for me. |
I am seeing this is 13.4.12, so not sure if 13.5 is the only culprit |
I have also noticed how all the content of the
import Head from 'next/head'
import { Inter } from 'next/font/google'
import styles from '@/styles/Home.module.css'
const inter = Inter({ subsets: ['latin'] })
export default function Home() {
return (
<>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
</Head> Gone If I do: diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 27c489b..b98b0c1 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
</>
)
}
+
+Home.getInitialProps = () => ({}); A reproduction:
|
I have gone through a couple of versions. I have run the build with all the below versions. Version tried:
I want to share these results in case it can be helpful. |
Referencing here, a comment with my findings: #48192 (reply in thread) |
Did you solve it by removing |
You've just removed |
Link to the code that reproduces this issue
https://github.com/ifier/next-js-SIGINT
To Reproduce
npm run build
If you will go to
_app
and comment outgetInitialProps
section fully - it will build with no errors.Current vs. Expected behavior
I would expect not to see this list
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64 Binaries: Node: 16.14.0 npm: 8.3.1 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 13.5.2 eslint-config-next: 13.5.2 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
No response
The text was updated successfully, but these errors were encountered: