Skip to content

Using with webpack (modernizr-loader) #54

@gen4sp

Description

@gen4sp

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions