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

ElementQueries.listen() is not a function #310

Open
Alpin52 opened this issue Dec 1, 2020 · 2 comments
Open

ElementQueries.listen() is not a function #310

Alpin52 opened this issue Dec 1, 2020 · 2 comments

Comments

@Alpin52
Copy link

Alpin52 commented Dec 1, 2020

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

@Alpin52
Copy link
Author

Alpin52 commented Dec 1, 2020

My code is at http://iancaple.ru/div.html

@kethan1
Copy link

kethan1 commented Mar 4, 2021

try using this: var ElementQueries = require('css-element-queries/src/ElementQueries');

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

2 participants