Skip to content

Re-exported version variable causes an issue in production build #4217

@jdbadilla

Description

@jdbadilla

What happened?

Steps to Reproduce

Due to confidentiality reasons, I cannot share the codebase with you. However, we have issues stemming from this second export * from './version' statement. Notice it is already defined previously here.

We are using webpack 4.16.1 and typescript 4.3.5 in our project. It would be awesome if you could push a fix removing this second unnecessary export statement so our minified build stops failing. We've invested several days into trying to identify the issue, and it seems that removing it may be the way to get our project to compile without having to make massive changes to our dependencies.

We are getting the following error due to the second import statement:
Cannot redefine property: VERSION

Expected Result

There should be no opentelemetry package that unnecessarily exports the same thing twice.

Actual Result

Opentelemetry currently star exports from the same file twice.

OpenTelemetry Setup Code

No response

package.json

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:p1Bugs which cause problems in end-user applications such as crashes, data inconsistencies, etc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions