What's the mistake - n (...) is not a function?

  • 0
    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
    JavaScript Micah Hale, Jul 22, 2019

  • 1 Answers
  • 0
    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

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!