Skip to content

Failed to resolve components of "otlp-exporter-base" from "exporter-trace-otlp-http" #5474

Open
@kostz

Description

@kostz

What happened?

Steps to Reproduce

Initialisation of OTLPLogExporter is failing, see the application illustrating the problem here https://github.com/kostz/otlp-logging-browser-demo

Expected Result

Build successful

Actual Result

Build unsuccessful

🚨 Build failed.

@parcel/core: Failed to resolve '@opentelemetry/otlp-exporter-base/browser-http' from 
'./node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/browser/OTLPLogExporter.js'

Additional Details

OpenTelemetry Setup Code

index.js

package.json

package.json

Relevant log output

🚨 Build failed.

@parcel/core: Failed to resolve '@opentelemetry/otlp-exporter-base/browser-http' from 
'./node_modules/@opentelemetry/exporter-logs-otlp-http/build/esm/platform/browser/OTLPLogExporter.js'

Operating System and Version

MacOS 15.3

Runtime and Version

Node.js v23.7.0

Metadata

Metadata

Labels

bundler-supportThis label groups issues related to bundler support and configurationdocumentDocumentation-related

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions