You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Remove unnecessary `React.Suspense` checks, as the minimum supported version is `react@>=17.0.1`. Also removes some files from the `react-18` integration test that are no longer necessary as of vercel#26664.
// this needs to come after we set the correct NODE_ENV or
97
-
// else it might cause SSR to break
98
-
constReact=require('react')
99
-
100
-
if(typeofReact.Suspense==='undefined'){
101
-
thrownewError(
102
-
`The version of React you are using is lower than the minimum required version needed for Next.js. Please upgrade "react" and "react-dom": "npm install react react-dom" https://nextjs.org/docs/messages/invalid-react-version`
103
-
)
104
-
}
105
-
106
96
// Make sure commands gracefully respect termination signals (e.g. from Docker)
Copy file name to clipboardExpand all lines: packages/next/server/dev/next-dev-server.ts
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -48,12 +48,6 @@ import {
48
48
}from'../load-components'
49
49
import{DecodeError}from'../../shared/lib/utils'
50
50
51
-
if(typeofReact.Suspense==='undefined'){
52
-
thrownewError(
53
-
`The version of React you are using is lower than the minimum required version needed for Next.js. Please upgrade "react" and "react-dom": "npm install react react-dom" https://nextjs.org/docs/messages/invalid-react-version`
0 commit comments