-
I'm integrating TradingView lightweight-charts into theia extension. The lightweight-charts version is 5.0.7. The building error is It seems that I got this error because lightweight-charts is a ESM module. Is there any workround to fix this? |
Beta Was this translation helpful? Give feedback.
Answered by
msujew
Jun 12, 2025
Replies: 1 comment 3 replies
-
Hey @yoncise, Theia supports ESM modules, since webpack will just recompile them into whatever format is required by the runtime. Can you provide a reproducible example? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Weird, webpack claims to support their conditional syntax used in the package exports of the lightweight-charts library. I'm a bit confused by this.
Anyhow, I managed to make this work by adjusting the
webpack.config.js
like this: