You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
window.Filterizr is not a constructor OR Uncaught SyntaxError: import declarations may only appear at top level of a module OR Uncaught (in promise) TypeError: Filterizr is not a constructor
#190
Open
o-bardiuk opened this issue
Oct 25, 2024
· 0 comments
I get some of these errors from Getting started page
import Filterizr from 'filterizr'
// Configure your options
const options = { /* check next step for available options */ };
// Adjust the CSS selector to match the container where
// you set up your image gallery
const filterizr = new Filterizr('.filter-container', options);
Uncaught SyntaxError: import declarations may only appear at top level of a module
If I copy paste code from the demo I get "window.Filterizr is not a constructor "
I get some of these errors from Getting started page
Uncaught SyntaxError: import declarations may only appear at top level of a module
If I copy paste code from the demo I get "window.Filterizr is not a constructor "
If I tweak the code like so I get:
Uncaught (in promise) TypeError: Filterizr is not a constructor
How do I use it in a normal way without NPM?
Uncaught TypeError: t.shuffle is undefined
What am I doing wrong?
The text was updated successfully, but these errors were encountered: