What's the mistake - n (...) is not a function?
Made interactive according to ES6 + standards (the console was clean)
After running the code through Webpack + Babel, then an error appears - n (...) is not a function
Can you tell me where it comes from? Such variables, functions, etc. in the code did not create
Solved - the problem ended up in calling the closest polyfill
For this, I added a variable i.e. like this - const elementsClosest = elementClosest (window);Paige Tanner
To place the code, please use CodePen or similar tool. Thanks you!