Skip to content

Compatibility issue with Packages based Architecture (with PhantomJS) #126

@anothermohit

Description

@anothermohit

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

Could you please tell me how to resolve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions