Skip to content

Commit

Permalink
Update package.json (#166)
Browse files Browse the repository at this point in the history
```
ailed to prepare server Error [ERR_REQUIRE_ESM]: require() of ES Module /var/task/node_modules/.pnpm/[email protected]/node_modules/node-fetch/src/index.js from /var/task/node_modules/.pnpm/@HyperDX[email protected][email protected]/node_modules/@hyperdx/node-opentelemetry/build/src/otel.js not supported.
Instead change the require of index.js in /var/task/node_modules/.pnpm/@HyperDX[email protected][email protected]/node_modules/@hyperdx/node-opentelemetry/build/src/otel.js to a dynamic import() which is available in all CommonJS modules.
    at /opt/rust/nodejs.js:1:11506
    at Function.Xt (/opt/rust/nodejs.js:1:11878)
    at Z.e.<computed>.X._load (/opt/rust/nodejs.js:1:11476)
    at u.require (/var/task/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_babel-plugin-_avtw3s2n4yvxy3ilqu7pouqafq/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:11:29195)
    at Object.<anonymous> (/var/task/node_modules/.pnpm/@HyperDX[email protected][email protected]/node_modules/@hyperdx/node-opentelemetry/build/src/otel.js:5:46) {
  code: 'ERR_REQUIRE_ESM'
}
```
  • Loading branch information
Pulseline-Tech authored Jul 20, 2024
1 parent 4fdf659 commit 6472326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/node-opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"lodash.isobject": "^3.0.2",
"lodash.isplainobject": "^4.0.6",
"lodash.isstring": "^4.0.1",
"node-fetch": "^2.7.0",
"open": "^8.4.2",
"ora": "^5.4.1",
"pino-abstract-transport": "^1.2.0",
Expand Down

0 comments on commit 6472326

Please sign in to comment.