shadow-cljs

hoppy 2025-02-21T15:50:44.733519Z

Greetings, Attempting to resurrect a couple-year-old cljs browser project that was using 'ag-grid'. At that time, enterprise, but now opting for community version. not much special - just (require ... ["ag-grid-react" :refer [AgGridReact]] ...), but getting innundated with: shadow-cljs - connected to server [:ui] Compiling ... Closure compilation failed with 80 errors --- node_modules/ag-grid-community/dist/package/main.cjs.js:1295 Class names defined inside a function cannot be reassigned. --- node_modules/ag-grid-community/dist/package/main.cjs.js:2935 ... Anybody using this thing, or have a suggestion about what I'm missing?

Roman Liutikov 2025-02-21T15:54:59.811659Z

Looks like Closure compiler doesn’t like certain JS code in the library. Maybe try a different version of the library.

thheller 2025-02-21T16:05:21.937129Z

is it all the same Class names defined inside a function cannot be reassigned. error?

thheller 2025-02-21T16:05:49.975019Z

but yeah could by they are using too many new features that aren't compatible with the closure compiler

hoppy 2025-02-21T16:07:17.395219Z

yes, just different line numbers.