-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
component: PopperThe React component. See <Popup> for the latest version.The React component. See <Popup> for the latest version.good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.
Description
I need help with SSR using the Popper component.
When I access to my page via a link from another page, the page is rendered as it should be.
But when I try to access the same page directly from its url, I get an HTTP error 500 and this error message:
Error running template: ReferenceError: document is not defined
at flipPlacement (/Users/xxx/Documents/dev/epotek/microservices/www/node_modules/@material-ui/core/Popper/Popper.js:37:52)
at Object.Popper (/Users/xxx/Documents/dev/epotek/microservices/www/node_modules/@material-ui/core/Popper/Popper.js:112:22)
at ReactDOMServerRenderer.render (/Users/xxx/Documents/dev/epotek/microservices/www/node_modules/react-dom/cjs/react-dom-server.node.development.js:3758:44)
at ReactDOMServerRenderer.read (/Users/xxx/Documents/dev/epotek/microservices/www/node_modules/react-dom/cjs/react-dom-server.node.development.js:3538:29)
at renderToString (/Users/xxx/Documents/dev/epotek/microservices/www/node_modules/react-dom/cjs/react-dom-server.node.development.js:4247:27)
at Promise.asyncApply (imports/startup/server/ssr-server.js:33:5)
at /Users/xxx/.meteor/packages/promise/.0.11.2.c7kmck.hukra++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
Metadata
Metadata
Assignees
Labels
component: PopperThe React component. See <Popup> for the latest version.The React component. See <Popup> for the latest version.good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.