next.js
next.js copied to clipboard
fix: only call `captureOwnerStack` if it exists
Building or starting Next.js in anything other than production mode is currently erroring with TypeError: _getClientReact.captureOwnerStack is not a function. This used to work but had a regression in https://github.com/vercel/next.js/pull/85486.
In our end-to-end tests we're building and starting with NODE_ENV=test so instead of upgrading to the latest version last week because of the CVE discovery, we had to downgrade instead.
Allow CI Workflow Run
- [ ] approve CI run for commit: bfbe369d04d3ad7b8cd06353ac906793d65f038a
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer