Skip to content

Getting process.hrtime is not a function error when running on Chrome #5

@mikemklee

Description

@mikemklee

I am running a React application, so I included the package using yarn add pixl-canvas-plus.

However, when I try to make an instance of the module using var canvasPlus = new CanvasPlus(), I get an error with the following message:

TypeError: process.hrtime is not a function

I believe this is because I am not running on Node.js, but instead running on Chrome.

There seems to be some dependencies that will only work with Node.js.

Any ideas on how to go around this issue? I tried out the demo, and really like it, so it would be awesome if I could actually get it to work in my application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions