I'm working on a Meteor project and WebStorm seems to not recognize global variables / methods provided by my installed packages in /.meteor/packages.
The two packages that I'm using right now that are causing problems are Iron Router and jQuery. The code is fine because I can run the project in the browser and it works as expected.
- Highlights $ with the message "Unresolved function or method $()".
- Highlights val() with the message "Unresolved function or method val()".
- RouteController with the message "Unresolved variable or type RouteController".
- Router with the message "Unresolved variable or type Router".
I could keep going but I think I provided enough examples.
Is there a problem with my configuration or something I can change so WebStorm recognizes these globals? It's annoying to have WebStorm highlight warnings when it is perfectly valid code.
My packages file:
# Meteor packages used by this project, one per line.
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.