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

Figwheel does not connect to browser #332

Open
nakiya opened this issue Jun 3, 2022 · 1 comment
Open

Figwheel does not connect to browser #332

nakiya opened this issue Jun 3, 2022 · 1 comment

Comments

@nakiya
Copy link

nakiya commented Jun 3, 2022

I'm following the steps here: https://figwheel.org/docs/create_a_build.html

I have just changed the project name and some lib versions only. project.cj:

(defproject testcljs "0.1.0-SNAPSHOT"
  :description "FIXME: write this!"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}

  :dependencies [[org.clojure/clojure "1.9.0"]
                 [org.clojure/data.json "2.4.0"]]

  :profiles
  {:dev
   {:dependencies [[org.clojure/clojurescript "1.11.54"]
                   [com.bhauman/figwheel-main "0.1.9"]
                   [org.clojure/data.json "2.4.0"]]
    :resource-paths ["target"]
    :clean-targets ^{:protect false} ["target"]}}

  :aliases {"fig" ["trampoline" "run" "-m" "figwheel.main"]})

When I do lein fig -- -b dev -r, figwheel does not connet to browser and it hangs here:

2022-06-03 10:52:05.120:INFO::main: Logging initialized @15600ms Opening URL http://localhost:9500

I can't upgrade the libs because I'm in corporate net and the local maven repo has only up to these versions of libs. (Clojure 1.10 is available)

Not sure if this has to do with some security settings. I'm on windows 10.

@nakiya
Copy link
Author

nakiya commented Jun 3, 2022

Console:

        
       Uncaught TypeError: Cannot read properties of undefined (reading 'Level')
    at repl.cljc:598:26
    at Function.G__13766__1 [as cljs$core$IFn$_invoke$arity$1] (core.cljs:10169:28)
    at core.cljs:4770:16
    at core.cljs:4770:15
    at Object.sval (core.cljs:3462:18)
    at Object.cljs$core$ISeqable$_seq$arity$1 (core.cljs:3519:12)
    at Object.cljs$core$seq [as seq] (core.cljs:1236:13)
    at Function.cljs$core$IFn$_invoke$arity$3 (core.cljs:2498:27)
    at Object.cljs$core$IReduce$_reduce$arity$3 (core.cljs:3529:28)
    at Function.cljs$core$IFn$_invoke$arity$3 (core.cljs:2570:17)
(anonymous) @ repl.cljc:598
G__13766__1 @ core.cljs:10169
(anonymous) @ core.cljs:4770
(anonymous) @ core.cljs:4770
(anonymous) @ core.cljs:3462
(anonymous) @ core.cljs:3519
cljs$core$seq @ core.cljs:1236
(anonymous) @ core.cljs:2498
(anonymous) @ core.cljs:3529
(anonymous) @ core.cljs:2570
(anonymous) @ core.cljs:5266
cljs$core$into @ core.cljs:5258
(anonymous) @ repl.cljc:595
util.cljs:187 Installing CLJS DevTools 0.9.10 and enabling features :formatters :hints :async
util.cljs:136 
        
       CLJS DevTools: some custom formatters were not rendered.
https://github.com/binaryage/cljs-devtools/blob/master/docs/faq.md#why-some-custom-formatters-were-not-rendered
devtools$util$check_custom_formatters_active_BANG_ @ util.cljs:136
setTimeout (async)
(anonymous) @ util.cljs:147
G__10857__delegate @ util.cljs:187
G__10857 @ util.cljs:184
devtools$util$wrap_with_custom_formatter_detection_BANG_ @ util.cljs:163
(anonymous) @ util.cljs:184
devtools$util$display_banner_BANG_ @ util.cljs:182
devtools$util$display_banner_if_needed_BANG_ @ util.cljs:193
(anonymous) @ core.cljs:49
devtools$core$install_BANG_ @ core.cljs:43
(anonymous) @ core.cljs:44
devtools$core$install_BANG_ @ core.cljs:43
(anonymous) @ preload.cljs:11
preload.cljs:5 
        
       Uncaught TypeError: Cannot read properties of undefined (reading 'call')
    at preload.cljs:5:43```

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

1 participant