How to access jQuery/Bootstrap/etc definitions in Meteor?

Since Meteor apps don't use typical script elements to load jQuery, Bootstrap, etc, how can I include these in the IDE so that when I use things like:

$('#location').modal('show');

It doesn't underline modal and say it's an unresolved method or function?

2 comments
Comment actions Permalink

to make IDE recognize these methods, you need adding meteor packages as a library to your project. The easiest way to do this is clicking the
'Import packages as library' link in the upper right corner of your .meteor/packages file

0
Comment actions Permalink

Whoa!! Very cool trick! Thanks :) WebStorm keeps amazing me every day I use it.

0

Please sign in to leave a comment.