Skip to content
New issue

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

(Meteor 1.1.0.2) Meteor.npmRequire and Npm.require are undefined. #83

Open
mrunderhill89 opened this issue Apr 24, 2015 · 3 comments
Open

Comments

@mrunderhill89
Copy link

I added meteorhacks:npm to my project, but I can't get either Meteor.npmRequire or Npm.require to work. Both functions come up undefined. The console will say either "Meteor.npmRequire is not a function" (and logging it reveals that it's undefined), or "Npm is undefined."

Here's my code:

Meteor.startup(function(){
    //neither of these lines work.
    var Backbone = Meteor.npmRequire("backbone");
    //var Backbone = Npm.require("backbone");
});

packages.json

{
    "react-three": "0.6.0",
    "backbone": "1.1.2"
}

Meteor packages

meteor-platform
autopublish
insecure
davidcittadini:three
mquandalle:bower
meteorhacks:npm
npm-container
@arunoda
Copy link
Member

arunoda commented Apr 24, 2015

Both these apis are only available on the server side.
On 2015 අප්‍රේල් 24, සිකු at පෙ.ව. 7.36 mrunderhill89 <
notifications@github.com> wrote:

I added meteorhacks:npm to my project, but I can't get either
Meteor.npmRequire or Npm.require to work. Both functions come up
undefined.

Here's my code:

Meteor.startup(function(){
var Backbone = Meteor.npmRequire("backbone");
});

packages.json

{
"react-three": "0.6.0",
"backbone": "1.1.2"
}

Meteor packages

meteor-platform
autopublish
insecure
davidcittadini:three
mquandalle:bower
meteorhacks:npm
npm-container


Reply to this email directly or view it on GitHub
#83.

@mrunderhill89
Copy link
Author

That would explain it. Thanks!

@arunoda
Copy link
Member

arunoda commented Apr 24, 2015

Shall we close this issue then :)
On 2015 අප්‍රේල් 24, සිකු at පෙ.ව. 7.54 mrunderhill89 <
notifications@github.com> wrote:

That would explain it. Thanks!


Reply to this email directly or view it on GitHub
#83 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants