Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with webpack (modernizr-loader) #54

Open
gen4sp opened this issue Oct 15, 2017 · 2 comments
Open

Using with webpack (modernizr-loader) #54

gen4sp opened this issue Oct 15, 2017 · 2 comments

Comments

@gen4sp
Copy link

gen4sp commented Oct 15, 2017

I am trying to import Detectizr right after Modernizr

import Modernizr from 'modernizr';
import Detectizr from 'detectizr';
 console.log('> >', Modernizr, Detectizr);

it makes an error:

Uncaught TypeError: Cannot read property 'documentElement' of undefined

If I remove Detectizr, everything is ok, Modernizr works well.

Any special advice with working with modernizr-loader or webpack?

@richgcook
Copy link

This is still an issue. I think it's before webpack compiles alphabetically so Detectizr is coming before Modernizr.

@Berezhnyk
Copy link

Any updates? Or can you suggest some other library which works with webpack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants