apm-agent-rum-js icon indicating copy to clipboard operation
apm-agent-rum-js copied to clipboard

Circular dependencies warning when using rollup

Open Delta843 opened this issue 2 years ago • 1 comments

I am using rollup v2.77.0 as a bundler and I am getting the following warning when I build my project with the apm-rum package v5.12.0:

(!) Circular dependencies
node_modules/@elastic/apm-rum-core/dist/es/common/utils.js -> node_modules/@elastic/apm-rum-core/dist/es/common/polyfills.js -> node_modules/@elastic/apm-rum-core/dist/es/common/utils.js
node_modules/opentracing/lib/span.js -> node_modules/opentracing/lib/noop.js -> node_modules/opentracing/lib/span.js
node_modules/opentracing/lib/tracer.js -> node_modules/opentracing/lib/functions.js -> node_modules/opentracing/lib/reference.js -> node_modules/opentracing/lib/span.js -> node_modules/opentracing/lib/noop.js -> node_modules/opentracing/lib/tracer.js

As far as I can see, it does not affect the usage, but it is not pretty either. Also, it seems that opentracing is having the same problem as well.

Delta843 avatar Jan 24 '23 12:01 Delta843

Hi @Delta843,

Thanks for reporting this to us, much appreciated, we will review it 👍

Cheers, Alberto

devcorpio avatar Jan 24 '23 15:01 devcorpio