I have a problem with a simple require
(ns repro.pg-ns (:require pg))
Repro is here: https://github.com/arichiardi/cljs-pg-error
The error is the classic Caused by: clojure.lang.ExceptionInfo: No such namespace: pg, could not locate pg.cljs, pg.cljc, or JavaScript source providing "pg" in file src/repro/pg_ns.cljs
Caused by: clojure.lang.ExceptionInfo: No such namespace: pg, could not locate pg.cljs, pg.cljc, or JavaScript source providing "pg" in file src/repro/pg_ns.cljs
and my compiler options look like:
{:main 'repro.pg-ns :output-to "out/pg-ns.js" :output-dir "out" :optimizations :none :source-map true :source-map-timestamp false :target :nodejs :install-deps true :npm-deps {:pg "7.4.1"}}
Nah, so the maintainer did not like the patch and replied:
./lib is a module by virtue of containing an index.js; you should report a bug with the failing tools.
Meaning more digging is needed.
I have a problem with a simple require
(ns repro.pg-ns (:require pg))
Repro is here: https://github.com/arichiardi/cljs-pg-error
The error is the classic
Caused by: clojure.lang.ExceptionInfo: No such namespace: pg, could not locate pg.cljs, pg.cljc, or JavaScript source providing "pg" in file src/repro/pg_ns.cljs
and my compiler options look like:
{:main 'repro.pg-ns :output-to "out/pg-ns.js" :output-dir "out" :optimizations :none :source-map true :source-map-timestamp false :target :nodejs :install-deps true :npm-deps {:pg "7.4.1"}}