Testing console error no jquery

I’m trying to add testing to my Meteor 1.8 application and I’m following the documentation.

When I run: npm run test-app
"test-app": "TEST_WATCH=1 meteor test --full-app --driver-package meteortesting:mocha --port 3050",

the browser states that I’m missing jquery. jquery is installed using npm not atmosphere. What am I suppose to do here?

What’s the exact error message?

Uncaught Error: Cannot find package “jquery”. Try “meteor add jquery”.

It’s installed using npm. If I install it as a meteor package the error goes away. Obviously I don’t want to be installing it twice.

if you have the meteor and npm version, meteor will use the specific version you installed via npm.

Currently there’s an issue where both jqueries are sent to the client even though only the npm version is used.

If you want to remove the atmosphere version, you will need to figure out which packages are using that version and either use alternatives, or make a local edit to those packages.
If you are using Blaze, it’s your culprit

Good news, a fix is on the way:

2 Likes