You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just updated to v3.4.0 and sadly, this release seems to bring a new error:
error - ReferenceError: document is not defined
at VerticalTimeline (/project-path/node_modules/react-vertical-timeline-component/dist-modules/VerticalTimeline.js:22:3)
at processChild (/project-path/node_modules/react-dom/cjs/react-dom-server.node.development.js:3353:14)
at resolve (/project-path/node_modules/react-dom/cjs/react-dom-server.node.development.js:3270:5)
at ReactDOMServerRenderer.render (/project-path/node_modules/react-dom/cjs/react-dom-server.node.development.js:3753:22)
at ReactDOMServerRenderer.read (/project-path/node_modules/react-dom/cjs/react-dom-server.node.development.js:3690:29)
at Object.renderToString (/project-path/node_modules/react-dom/cjs/react-dom-server.node.development.js:4298:27)
at Object.renderPage (/project-path/node_modules/next/dist/server/render.js:596:45)
at Function.getInitialProps (webpack-internal:///./node_modules/next/dist/pages/_document.js:194:19)
at Object.loadGetInitialProps (/project-path/node_modules/next/dist/shared/lib/utils.js:69:29)
at renderDocument (/project-path/node_modules/next/dist/server/render.js:609:48) {
page: '/'
}
It seems to be caused by the usage of document that may break SSR/SGR usage in NextJS:
I didn't encounter this error until this version,.
Is that the first document usage in this package (that's the only occurence I can find in this file)? 🤔
I think the solution would be to use the following bulletproof test:
I just updated to v3.4.0 and sadly, this release seems to bring a new error:
error - ReferenceError: document is not defined at VerticalTimeline (/project-path/node_modules/react-vertical-timeline-component/dist-modules/VerticalTimeline.js:22:3) at processChild (/project-path/node_modules/react-dom/cjs/react-dom-server.node.development.js:3353:14) at resolve (/project-path/node_modules/react-dom/cjs/react-dom-server.node.development.js:3270:5) at ReactDOMServerRenderer.render (/project-path/node_modules/react-dom/cjs/react-dom-server.node.development.js:3753:22) at ReactDOMServerRenderer.read (/project-path/node_modules/react-dom/cjs/react-dom-server.node.development.js:3690:29) at Object.renderToString (/project-path/node_modules/react-dom/cjs/react-dom-server.node.development.js:4298:27) at Object.renderPage (/project-path/node_modules/next/dist/server/render.js:596:45) at Function.getInitialProps (webpack-internal:///./node_modules/next/dist/pages/_document.js:194:19) at Object.loadGetInitialProps (/project-path/node_modules/next/dist/shared/lib/utils.js:69:29) at renderDocument (/project-path/node_modules/next/dist/server/render.js:609:48) { page: '/' }
It seems to be caused by the usage of
document
that may break SSR/SGR usage in NextJS:I didn't encounter this error until this version,.
Is that the first
document
usage in this package (that's the only occurence I can find in this file)? 🤔I think the solution would be to use the following bulletproof test:
Updating the
node_module
code did the job:Would it be possible to release this fix?
CC @stephane-monnot
The text was updated successfully, but these errors were encountered: