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 <unknown> (.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 (codesandbox/codesandbox-client#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.
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:
From what I see, this
isMemostuff is related to thereact-ispackage (codesandbox/codesandbox-client#1521) which is used byhoist-non-react-staticswhich is used byreact-async-scriptwhich is used byreact-google-recaptcha.So I guess that the issue is related to the script getting initialized.