reactProductionProfiling: true
isn't working when experimental.reactCompiler: true
#68276
Labels
bug
Issue was opened via the bug report template.
Link to the code that reproduces this issue
https://github.com/sanity-io/nextjs-react-compiler-production-profiling-reproduction
To Reproduce
pnpm install
to get the same deps.next build && next start
.Current vs. Expected behavior
When I try to run the profiler, I expect it to be available:

Instead I see this warning:

I also expect to be able to log
window.profileResults
and see data, instead it's undefined.When running
next dev
I'm able to run the profiler, as well as see data onwindow.profileResults
.There is a test deploy you can use: https://nextjs-react-compiler-production-profiling-reproduction.sanity.dev/
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 Available memory (MB): 32768 Available CPU cores: 10 Binaries: Node: 20.11.1 npm: 10.5.2 Yarn: 1.22.19 pnpm: 9.6.0 Relevant Packages: next: 15.0.0-canary.88 // Latest available version is detected (15.0.0-canary.88). eslint-config-next: 15.0.0-canary.88 react: 19.0.0-rc-14a4699f-20240725 react-dom: 19.0.0-rc-14a4699f-20240725 typescript: 5.3.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Developer Experience, Documentation, Instrumentation
Which stage(s) are affected? (Select all that apply)
next build (local), next start (local), Vercel (Deployed), Other (Deployed)
Additional context
I've tested against different canaries and the RC of v15, and haven't found a version where
reactProductionProfiling: true
seem to be working 🤔The text was updated successfully, but these errors were encountered: