Fork me on GitHub
#shadow-cljs
<
2018-06-02
>
wilkerlucio18:06:14

is there a way to dismiss warnings on browser after compilation compilation?

wilkerlucio19:06:12

my issue is that I'm getting warnings from a depency library I have no direct control, and the warnings keep coming during hot reloads

wilkerlucio19:06:09

one of the libraries I'm trying to use got this:

wilkerlucio19:06:11

SEVERE: node_modules/tether/dist/js/tether.js:384: ERROR - Duplicate let / const / class / function declaration in the same scope is not allowed.
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
         ^^^^^^^^^^^^^^^

wilkerlucio19:06:13

I see this function was defined before on the same file, is there a way to control this behaviour and just allow it to redefine the function?

wilkerlucio22:06:40

I'm trying to read some js files from a cljs, but I can't figure how to make shadow find it, I have this structure:

- src
  - file.cljs
  - file-js.js

wilkerlucio22:06:24

in file.cljs I'm trying (:require ["./file-js"]) but I get The required JS dependency "./file-js" is not available, ...