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.

Error when trying to import the package

See original GitHub issue

I’m using webpack to bundle my scripts, and when I try to load the package in the script using

import gray from 'jquery-gray';

I get

Uncaught TypeError: Cannot read property 'documentElement' of undefined

It would seem like it’s coming from the modernizer 🤷🏼‍♂️

Any idea what could be the issue?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
karlhorkycommented, Jan 16, 2021

Great, thanks also for testing!

1reaction
dingo-dcommented, Jan 16, 2021

Yup, works perfectly when combined with the CSS filter on modern browsers. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

getting error when trying to import module from installed ...
I've imported a module called 'deuces' (https://github.com/worldveil/deuces) and when I try and import modules from it using:
Read more >
ModuleNotFoundError: no module named Python Error [Fixed]
When you try to import a module in a Python file, Python tries to resolve this module in several ways. · As the...
Read more >
Error when trying to import a return package in Trados Studio
You received a return package from a translator and want to import it in Trados Studio, but the error Could not find part...
Read more >
Solved: Re: Import package error. - Power Platform Community
Re: Power App community blog Vertical menu with expand and collapse feature - HorizontalExpander.zip;. Unable to import pacakage 'Something went wrong.
Read more >
KB39260: "Cannot import a package from a project source into ...
When trying to import an Object Manager package, the following error appears:Cannot import a package from a project source into a configuration source....
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