react-textarea-autosize: [v8] SSR support is broken
It seems, like with introduction of v8 this issue has returned
We are using this package with next v11.0.1
and getting the following error, when trying to start our application:
“ReferenceError: document is not defined”
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 9
- Comments: 16 (6 by maintainers)
I’m running into this problem when using the Next.js Edge Runtime with SSR as well.
Thanks. Unfortunately throws an error while generating the og image on
api/og
route in next.js:Probably because
satori
package is incompatible with theworker
condition?SSR should not reach for
react-textarea-autosize.browser.esm.js
. This is a browser build - this means that your bundler is configured incorrectly.