We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 ?
The text was updated successfully, but these errors were encountered:
@welelay Are you using Meteor 1.3?
Meteor 1.3
Sorry, something went wrong.
yes
following https://nodejs.org/api/vm.html#vm_example_running_an_http_server_within_a_vm there may be a way to access require by adding it to plugins in backdoor.js. I'll let you know...
require
backdoor.js
Successfully merging a pull request may close this issue.
I'm still trying to do a simple http.get in my test.
Here I try to make the server do the work:
It fails to find Npm or require, but has Meteor and all my application's module :
Is there a way to access base modules (not even npm packages) from server code ?
The text was updated successfully, but these errors were encountered: