Fork me on GitHub
#shadow-cljs
<
2019-10-03
>
bbss07:10:29

I'm following https://code.thheller.com/blog/shadow-cljs/2017/10/14/bootstrap-support.html But it's not working out too well, I'm getting several errors in the process:

shadow.module.shared.append.js:189 Uncaught TypeError: Cannot read property 'env' of undefined
    at shadow.module.shared.append.js:189
which is on:
shadow.cljs.bootstrap.env.set_loaded(["goog.i18n....
And when running the after-load hook I get:
Uncaught Error: Namespace "goog.debug.Error" already declared.

thheller08:10:03

@bbss looks like you are using multiple modules? if so you must ensure that shadow.cljs.bootstrap.env is one of your :entries of the :shared module

thheller08:10:36

@tony.kay I'm not sure how this happens. seems like a #js ... value creeps into a websocket message when it shouldn't. not sure how it would get there. do you have #js literals in some metadata maybe? ns/def/defn?

bbss11:10:52

thanks @thheller, errors are gone! :thumbsup:

exit212:10:18

I’m working on porting a projecting from figwheel to shadow. Do I need to have a deps.edn or can I continue to define my deps in my project.clj?

exit212:10:25

awesome, thanks!

👍 4