-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closure Compiler Error 'Class names defined inside a function cannot be reassigned' #846
Comments
We currently cannot upgrade to the latest closure-compiler version since |
Is there a way to get around the issue with a hotfix somehow? |
@alexisvincent The issue is that ClojureScript itself (not shadow-cljs) has bindings to a specific version of Google Closure Compiler that does not have the fix. So @thheller can not fix this in shadow-cljs. What I may do, is fork Google Closure Compiler and release a shadow-cljs compatible JAR with that one check removed (i.e. 'backport' the upstream fix to an older Google Closure Compiler release). Then interested users can override the Google Closure Compiler dep to use that instead of the official release. |
With |
@superstructor Thanks! But Thomas helped me with a fix. Do the thing he describes above with
|
@thheller @alexisvincent Thanks for the workaround, that is a good option to have available for most users. Unfortunately breaks on binaryage/cljs-oops because it has macros that use the In that case I found custom build of the Closure Compiler with that one upstream commit back-ported to it is an option that works for code that still depends on |
David Nolen is currently working on getting the Closure Library and Closure Compiler compatible with CLJS in the bump-closure branch. Once thats all sorted I'll make all the necessary adjustments to get shadow-cljs compatible as well ASAP. There might be some hidden ones lurking that I missed. |
@thheller Seems like bump closure has been merged, no release yet though |
This should be ok now with |
Require of NPM package @projectstorm/react-diagrams causes compiler errors 'Class names defined inside a function cannot be reassigned'.
e.g.
Caused by
Es6RewriteClass.java:489
which was subsequently removed as of releasev20201006
in this commit with the comment:Note I also found at least one other reference to the same issue when searching at rough-stuff/wired-elements#147
The text was updated successfully, but these errors were encountered: