require
calls in esm
build of @opentelemetry/resources
#4642
Labels
bug
Something isn't working
pkg:resources
priority:p1
Bugs which cause problems in end-user applications such as crashes, data inconsistencies, etc
What happened?
Steps to Reproduce
index.ts
Run
./node_modules/.bin/vite-node index.ts
Expected Result
No Syntax Error
Actual Result
Syntax Error
Additional Details
There should be no
require
calls for theesm
https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-resources/src/platform/node/machine-id/getMachineId.ts
OpenTelemetry Setup Code
No response
package.json
Relevant log output
The text was updated successfully, but these errors were encountered: