You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using clojurephant.clojurescript with shadow-cljs and the @mui/material node module. When compiling clojurescript code, I get an error: ERROR: JSC_LANGUAGE_FEATURE. This language feature is only supported for ECMASCRIPT_2016 mode or better: exponent operator (**). at .../node_modules/@mui/material/esm/styles/createTransitions.js line 44 : 30. It seems that the compiler just accepts es5 code.
This throws an exception when compiling clojurescript code: Caused by: us.bpsm.edn.EdnException: Don't know how to write '[dev.clojurephant.plugin.clojurescript.tasks.ForeignLib_Decorated@5ad501e9]' of type 'class java.util.TreeMap$Values'
Discussed in #196
Originally posted by ec-c November 14, 2022
Hello
I'm using
clojurephant.clojurescriptwithshadow-cljsand the@mui/materialnode module. When compiling clojurescript code, I get an error:ERROR: JSC_LANGUAGE_FEATURE. This language feature is only supported for ECMASCRIPT_2016 mode or better: exponent operator (**). at .../node_modules/@mui/material/esm/styles/createTransitions.js line 44 : 30. It seems that the compiler just acceptses5code.https://clojurescript.org/reference/compiler-options#language-in-and-language-out confirms my suspicion:
How can I configure
:language-intoes6?I tried to configure
foreignLibsin my kotlin-based gradle setup, however without success:This throws an exception when compiling clojurescript code:
Caused by: us.bpsm.edn.EdnException: Don't know how to write '[dev.clojurephant.plugin.clojurescript.tasks.ForeignLib_Decorated@5ad501e9]' of type 'class java.util.TreeMap$Values'Thanks for helping me.