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
Can't provide a sandbox with Next.js I guess, but the case is rather simple. In Next.js, you don't manually add StrictMode, so the checks implemented in compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts won't apply. On top of these, we should add reactStrictMode: true detection in next.config.js, if the latter file is found.
The text was updated successfully, but these errors were encountered:
josephsavona
changed the title
[React 19] react-compiler-healthcheck prints "StrictMode usage not found." in Next.js project with reactStrictMode: true in next.config.jsreact-compiler-healthcheck prints "StrictMode usage not found." in Next.js project with reactStrictMode: true in next.config.jsMay 17, 2024
…#29167)
## Summary
Closes#29130
## How did you test this change?
Run the healthcheck in the compiler playground and the nodejs.org repo
for the next config with a `.mjs` extension. Sanity with Vite React
template.
Signed-off-by: abizek <abishekilango@protonmail.com>
Summary
Can't provide a sandbox with Next.js I guess, but the case is rather simple. In Next.js, you don't manually add StrictMode, so the checks implemented in
compiler/packages/react-compiler-healthcheck/src/checks/strictMode.ts
won't apply. On top of these, we should addreactStrictMode: true
detection innext.config.js
, if the latter file is found.The text was updated successfully, but these errors were encountered: