O
O
OGBeast2222022-01-14 13:43:12
JavaScript
OGBeast222, 2022-01-14 13:43:12

How to setup mixitup via npm in js file?

help set up mixitup on the site, mixitup downloaded via npm need help setting up js file here is the error

import mixitup from 'mixitup';

require(['mixitup'], function(mixitup) {
  
  var mixitup = mixitup('.catalog-items');

});


mixitup ('mixitup ') quotes say Property "mixitup" was declared, but its value was not read.ts(6133)
Could not find module declaration file "mixitup". "D:/gulp_start-V2.1-dev/node_modules/mixitup/dist/mixitup.js" has the implicit type "any".
Try using the "npm i --save-dev @types/mixitup" command if it exists, or add a new declaration file (.d.ts) containing "declare module 'mixitup';"

Ps galp assembly from a freelancer, I don’t really understand js

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question