Skip to content

process.uptime is not a function #362

Closed
@dptoot

Description

Node.js Version: 10.15.3

Operating System: Windows

Steps to Produce Error:

Just including the opossum library in our SSR application causes:

processStartTime.js?43bd:4 Uncaught TypeError: process.uptime is not a function
    at Object.eval (processStartTime.js?43bd:4)
    at eval (processStartTime.js:30)
    at Object.../../packages/bonnet/node_modules/prom-client/lib/metrics/processStartTime.js (client.js:4939)
    at __webpack_require__ (client.js:770)
    at fn (client.js:130)
    at eval (defaultMetrics.js?9dd3:4)
    at Object.../../packages/bonnet/node_modules/prom-client/lib/defaultMetrics.js (client.js:4731)
    at __webpack_require__ (client.js:770)
    at fn (client.js:130)
    at eval (index.js?875d:22
)

No actual circuit breaker has been defined yet.

From a new relic post
https://discuss.newrelic.com/t/process-uptime-is-not-a-function/65486
It appears there is server-side code being called in our clietn bundle now. Any resolutions?

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