Open ccfontes opened 3 years ago
Hmm I can't say I've ever seen this or know what the issue is, it feels more ClojureScript compiler related than this repos code.
It actually seems more related to the Google Closure Compiler: https://stackoverflow.com/questions/57458122/how-to-fix-referenceerror-cant-find-variable-jscomp-phantomjs-or-refere
It might be worth trying to pin to a slightly older Clojure / ClojureScript version too :thinking: I wonder if any breaking changes were introduced that I'm not aware of? I'll try to dig deeper into this soon, but I'm really busy for the next few days at least I'm afraid.
@Olical Makes sense. I'll only have time to try i.e., pinning an older ClojureScript compiler starting with next weekend.
Gave it a go with a ClojureScript version from 2018 (1.10.145) without success.
Tried :output-feature-set :es6 as well, but the situation didn't change.
By the way, this is a Reagent project.
package.json
:
"dependencies": {
"react": "17.0.1",
"react-dom": "17.0.1"
}
Do you think we should close the ticket? On my side it's OK because I only intend to run these tests in CI, and a longer build time is not such a big concern.
deps.edn:
test.cljs.edn:
Works with
:simple
optimizations.Breaks like this with
:whitespace
optimizations:Breaks likes this with
:none
optimizations: