You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: