Skip to content

ElementQueries.listen() is not a function #310

@Alpin52

Description

@Alpin52

Hello!
I tried to put the code into my site. I ran npm install. It mentioned some packages are out of date. But I installed npm a month ago.
When I included line
var ElementQueries = require('css-element-queries-1.2.1/src/ElementQueries');

-- I encountered an error. So I had to change it to
var ElementQueries = require(['css-element-queries-1.2.1/src/ElementQueries']);

After that I experience the following ERROR:

Uncaught TypeError: ElementQueries.listen is not a function

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