drawer - Element is not defined in SSR build
See original GitHub issuesimilar to #581
While testing out the PR fix for #581, I also stumbled on to a build error on drawer.
ReferenceError: Element is not defined
at Object.105 (/usr/local/google/home/mattgoo/Downloads/material-next-template-master/node_modules/@material/drawer/dist/mdc.drawer.js:809:15)
at __webpack_require__ (/usr/local/google/home/mattgoo/Downloads/material-next-template-master/node_modules/@material/drawer/dist/mdc.drawer.js:35:30)
This requires a similar fix to #581 found in https://github.com/material-components/material-components-web-react/pull/592.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ReferenceError: Element is not defined on SSR #561 - GitHub
Hello, I'm getting a ReferenceError: Element is not defined when I try to SSR the Drawer component, running on version 0.7.1.
Read more >Angular SSR - ReferenceError: Element is not defined
I have an angular 7 project that I'm developping. I use server-side rendering to allow facebooks crawler to work properly. Until now, I've ......
Read more >Portals - React
Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component. ......
Read more >Configuring quasar.config.js
js is run by the Quasar CLI build system, so this code runs under Node directly, not in the context of your app....
Read more >Basic Features: Layouts - Next.js
If you only have one layout for your entire application, you can create a Custom ... defined at the page level, if available...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ah you’re right…this is a duplicate. Thanks @4cm4k1
@rustemgareev we haven’t updated to the latest mdc web v1. We’re currently working on it. Progess is tracked through #697.