dozoisch / dozoisch/react-google-recaptcha
Next.js 15 error in production mode: TypeError: n.isMemo is not a function
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
react-google-recaptcha version: 3.1.0
react-async-script version: 1.2.0
I'm using the package as indicated in the docs and it works great in Next.js 15 **development mode**, but I get the following error in the terminal when the page tries to get rendered server-side by Next **in production mode**:
```
⨯ TypeError: n.isMemo is not a function
at u (.next/server/chunks/5090.js:1:98336)
at t (.next/server/chunks/5090.js:1:98756)
at t (.next/server/chunks/5090.js:1:98704)
at t (.next/server/chunks/5090.js:1:98704)
at (.next/server/chunks/5090.js:1:76321)
at 16811 (.next/server/chunks/5090.js:1:76639)
at t (.next/server/webpack-runtime.js:1:128)
at 78258 (.next/server/chunks/2500.js:1:94444)
at Object.t [as require] (.next/server/webpack-runtime.js:1:128) {
digest: '174338382'
}
```
From what I see, this `isMemo` stuff is related to the `react-is` package (https://github.com/codesandbox/codesandbox-client/issues/1521) which is used by `hoist-non-react-statics` which is used by `react-async-script` which is used by `react-google-recaptcha`.
So I guess that the issue is related to the script getting initialized.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.