Skip to content

Commit

Permalink
troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Nov 14, 2022
1 parent 5143ef0 commit 6d84830
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -753,12 +753,14 @@ $ time ./sci "(loop [val 0 cnt 1000000] (if (pos? cnt) (recur (inc val) (dec cnt

## Troubleshooting

### Shadow-cljs
### Shadow-cljs + user.clj

When you see `IllegalStateException: Attempting to call unbound fn:
#'sci.impl.cljs/cljs-ns-publics` during shadow-cljs compilation, you might have
to move your `.shadow-cljs` cache out of the way. If this does not fix the
problem, please create an issue with steps to reproduce.
When you require `sci.core` in `user.clj` in a shadow-cljs project, you might see problems with `sci.core/copy-var`.

This can be worked around by:

- Requiring `cljs.analyzer.api` in `user.clj` as well
- Not requiring `sci.core` immediately but delaying it e.g. using `requiring-resolve`

## Thanks

Expand Down

0 comments on commit 6d84830

Please sign in to comment.