Skip to content
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

Macro cljfmt.core/read-resource does not exist error when building native-image #236

Open
codeasone opened this issue Jun 23, 2021 · 1 comment

Comments

@codeasone
Copy link

When building native image via lein do clean, native-image for the latest 0.8.0 release, I'm hitting the following issue:

Caused by: clojure.lang.ExceptionInfo: Invalid :refer, macro cljfmt.core/read-resource does not exist in file src/cljfmt/core.cljc {:tag :cljs/analysis-error}

Full output: https://gist.github.com/codeasone/e258af1f2160d0120dbc66bc8c870949

So there is a problem with the cljs build triggered via the leiningen.cljsbuild hook.

Work-around: just comment out the following line in the project.clj

  ;; :hooks [leiningen.cljsbuild]

And re-run lein do clean, native-image

@vemv
Copy link
Contributor

vemv commented Oct 8, 2021

In case it helps: it seems easy enough to separate cljsbuild to its own Lein profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants