-
Couldn't load subscription status.
- Fork 21
Open
Description
I'm still trying to do a simple http.get in my test.
Here I try to make the server do the work:
it("....", function() {
return client
.execute(function() {
return computedEnpoint();
}).then(function(url) {
return server.execute(function() {
try {
console.log("Meteor is accessible:", Meteor.isServer);
// either of them fail
// var http = Npm.require("http");
// require("http");
} catch (e) {
console.error("E:", e);
}
});
});
});
It fails to find Npm or require, but has Meteor and all my application's module :
Meteor is accessible: true
E: [ReferenceError: Npm is not defined]
E: [ReferenceError: require is not defined]
Is there a way to access base modules (not even npm packages) from server code ?
Metadata
Metadata
Assignees
Labels
No labels