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

Compatibility issue with Packages based Architecture #127

Open
anothermohit opened this issue Mar 8, 2016 · 0 comments
Open

Compatibility issue with Packages based Architecture #127

anothermohit opened this issue Mar 8, 2016 · 0 comments

Comments

@anothermohit
Copy link

Hi,

I am trying to use Phantomjs. It works perfectly fine if I install it directly in my Meteor directory following these steps - http://stackoverflow.com/a/28125219/4382567

But I am not able to get it to work when keeping this code in a separate local package.

Here is what I am doing:
I have set the dependency of my package on meteorhacks:npm (and tried npm-container too) and keeping the packages.json file in the root path of my package.

The error I am getting:
ReferenceError: require is not defined (at var page = require('webpage').create(); )

Can anyone please tell me how to resolve this?

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

1 participant