boot-clj / boot-clj/boot-figreload

Unable to resolve var

Open
#17 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
50
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I'm currently getting the following error when trying to run boot-figreload:
```
java.lang.RuntimeException: Unable to resolve var: figwheel-sidecar.build-middleware.injection/figwheel-connect-ns-name in this context
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve var: figwheel-sidecar.build-middleware.injection/figwheel-connect-ns-name in this context, compiling:(powerlaces/boot_figreload/figwheel.clj:25:3)
clojure.lang.ExceptionInfo: java.lang.RuntimeException: Unable to resolve var: figwheel-sidecar.build-middleware.injection/figwheel-connect-ns-name in this context, compiling:(powerlaces/boot_figreload/figwheel.clj:25:3)
```
Here's the task that runs when this issue is caused:
```
(deftask figwheel
"Runs figwheel and enables reloading."
[]
(dev)
(require '[powerlaces.boot-figreload :refer [reload]])
(let [reload (resolve 'powerlaces.boot-figreload/reload)]
(comp
(start-server)
(watch)
(reload :client-opts {:debug true})
(cljs-repl)
(cljs))))
```

Contributor guide

Open the contributing guide

Research direction

Start with powerlaces/boot_figreload/figwheel.clj at line 25 and reproduce the error using the figwheel task shown in the issue. Inspect how figwheel-sidecar.build-middleware.injection/figwheel-connect-ns-name is referenced, and consider the issue complete when the task compiles without the unresolved-var error.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.