question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

drawer - Element is not defined in SSR build

See original GitHub issue

similar 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
moog16commented, Jan 4, 2019

ah you’re right…this is a duplicate. Thanks @4cm4k1

0reactions
moog16commented, Apr 23, 2019

@rustemgareev we haven’t updated to the latest mdc web v1. We’re currently working on it. Progess is tracked through #697.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found