Using meteor/jquery vs jquery

Hello,

What is the current guidance on which jQuery to use.

For quite some npm packages I run into issues with Meteor not recognizing jQuery and I usually have to go into the npm package and redirect the export.

Are we supposed to remove meteor/jquery and install npm jquery? Will that avoid these issues?

Example:
bootstrap-datepicker will not work by simply putting import datepicker from 'bootstrap-datepicker';
I had to make sure the module exports correctly.

Thanks for any info

Yes you should use NPM jquery and remove the meteor package.

Same issue as here: [1.3] How to avoid duplicate dependencies Athmosphere/NPM

You need to bug the bootstrap-datepicker maintainers to import/export correctly.

1 Like