css-element-queries
css-element-queries copied to clipboard
ElementQueries.listen() is not a function
trafficstars
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
My code is at http://iancaple.ru/div.html
try using this: var ElementQueries = require('css-element-queries/src/ElementQueries');