Skip to content

New upstream deps causes SockJS to not be found #123

@jacobemcken

Description

@jacobemcken

I've updated clojure, clojurescript and vertx api to latest stable which have caused issues before, but which I expected to have been solved.

Here is my "test case":
https://github.com/jacobemcken/simple-immutant-vertx-demo/compare/new_upstream_causes_breakage

I've tried to build both with and without specifying foreign-libs (see the cljs build profiles):

lein cljsbuild clean
lein cljsbuild once with
# test application

lein cljsbuild clean
lein cljsbuild once without
# test application

Both of the above compiles giving only warnings:

Compiling ClojureScript.
Compiling "resources/public/client.js" from ["src-cljs"]...
Upstream deps.cljs found on classpath. {:foreign-libs [{:file "js/vertxbus.js", :provides ["vertx.eventbusjs"]} {:file "js/sockjs.js", :provides ["sockjs"]}]} This is an EXPERIMENTAL FEATURE and is not guarenteed to remain stable in future versions.
WARNING: clone already refers to: /clone being replaced by: domina/clone at line 148 file:/home/je/.m2/repository/domina/domina/1.0.1/domina-1.0.1.jar!/domina.cljs
WARNING: No such namespace: XPathResult at line 30 file:/home/je/.m2/repository/domina/domina/1.0.1/domina-1.0.1.jar!/domina/xpath.cljs
WARNING: No such namespace: XPathResult at line 41 file:/home/je/.m2/repository/domina/domina/1.0.1/domina-1.0.1.jar!/domina/xpath.cljs
WARNING: Use of undeclared Var enfocus.core/Utility at line 36 file:/home/je/.m2/repository/enfocus/enfocus/2.0.0-beta1/enfocus-2.0.0-beta1.jar!/enfocus/core.cljs
WARNING: Use of undeclared Var enfocus.core/functions at line 36 file:/home/je/.m2/repository/enfocus/enfocus/2.0.0-beta1/enfocus-2.0.0-beta1.jar!/enfocus/core.cljs
WARNING: No such namespace: goog.net.EventType at line 172 file:/home/je/.m2/repository/enfocus/enfocus/2.0.0-beta1/enfocus-2.0.0-beta1.jar!/enfocus/core.cljs
WARNING: Extending an existing JavaScript type - use a different symbol name instead of js/String e.g string at line 690 file:/home/je/.m2/repository/enfocus/enfocus/2.0.0-beta1/enfocus-2.0.0-beta1.jar!/enfocus/core.cljs
WARNING: Use of undeclared Var enfocus.core/Utility at line 36 /home/je/Projects/simple-immutant-vertx-demo/target/cljsbuild-compiler-1/enfocus/core.cljs
WARNING: Use of undeclared Var enfocus.core/functions at line 36 /home/je/Projects/simple-immutant-vertx-demo/target/cljsbuild-compiler-1/enfocus/core.cljs
WARNING: No such namespace: goog.net.EventType at line 172 /home/je/Projects/simple-immutant-vertx-demo/target/cljsbuild-compiler-1/enfocus/core.cljs
WARNING: Extending an existing JavaScript type - use a different symbol name instead of js/String e.g string at line 690 /home/je/Projects/simple-immutant-vertx-demo/target/cljsbuild-compiler-1/enfocus/core.cljs
WARNING: No such namespace: XPathResult at line 30 /home/je/Projects/simple-immutant-vertx-demo/target/cljsbuild-compiler-1/domina/xpath.cljs
WARNING: No such namespace: XPathResult at line 41 /home/je/Projects/simple-immutant-vertx-demo/target/cljsbuild-compiler-1/domina/xpath.cljs
WARNING: clone already refers to: /clone being replaced by: domina/clone at line 148 /home/je/Projects/simple-immutant-vertx-demo/target/cljsbuild-compiler-1/domina.cljs

But gives the following error in the browser console (using Firefox):

ReferenceError: SockJS is not defined
    factory(SockJS);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions