3.6.0 compilation fails

Hello,

Trying to migrate a project from 2.4 but there are errors which cause components to not compile (and no relevant message either).

To reproduce:

Add these imports in package.json and run npm install

@opentelemetry/api”: “^1.0.2”,
@opentelemetry/exporter-trace-otlp-http”: “^0.27.0”,
@opentelemetry/exporter-zipkin”: “^1.0.1”,
@opentelemetry/resources”: “0.25.0”,
@opentelemetry/sdk-trace-base”: “0.25.0”,
@opentelemetry/semantic-conventions”: “0.25.0”,

Then create a new empty component and simply import this

import { BasicTracerProvider, SimpleSpanProcessor, Tracer } from ‘@opentelemetry/sdk-trace-base’;

Now the component cannot be compiled and there is no relevant error message to identify the issue

Also trying to import scripts such as 密码学 14 CryptoJS - SegmentFault 思否 will cause the same error.

These are working fine in 2.4

Any ideas?
Same happens when trying to use npm package moment-timezone

You need to recite the spell first.
It would be cheaper if you bought it from me.
Half price for students!!!

Another thing which fails is when there is a circular dependency.
Import below scripts in project, then add Test component to a node. Fails in 3.6 but works in 2.4

Test.zip (862 字节)

Where are you from? :smile: