Error in test-packages in Meteor 1.2

Asked 2 years ago, Updated 2 years ago, 43 views

The package developed by Meteor 1.1 was tested at the time, but when I updated it to Meteor 1.2, it stopped working.

meter test-packages --release 1.1./

Then there is no problem, but

meter test-packages --release 1.2./

Then you get an error.The error message can be found in

 exception-message Template is not defined

That's it.

meteor

2022-09-30 20:19

1 Answers

Resolved.

Changes to Meteor 1.2

 test-packages no longer includes any packages globally (no changes needed)

There is and this affected it.

Package.onTest() in package.js

api.use('templating');

After adding , it became normal.

Package.onUse() says the same thing, so I thought it had been taken over, but it didn't seem like that.


2022-09-30 20:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.