lein-figwheel 2018-06-20

I'm puzzled by why this project doesn't run with figwheel https://github.com/briangorman/es6test Does anyone have any idea? The es6 module I am trying to use works in this project: https://bitbucket.org/briangorman2/broken-cljs/src/master/

@bfast this is a good question

I'm checking it out and I can't see any reason why yet. First I'm checking to see that the :npm-deps false param is making to the compiler.

well :npm-deps false is making it to the compiler

hmm it actually looks like its getting built successfully, not sure why it is throwing

Thanks @bhauman, this is much appreciated. I really need to learn how to debug lein plugins

@bfast yeah its not in the plugin

oh I get what you're saying

I'm about to find part of the problem, it is compiling just fine

@bfast oh geez your problem is that index.js is in the root directory 😞

not your fault

@bfast if you put index.js in a subdirectory that will be better

figwheel tries to watch your foreign-libs for changes but this is problematic when they are in the root directory

thats definitely a sharp edge....

Thanks again for looking into this

yeah the problem is that the project root gets watched

but if you put it in a subdir you can change the es6 file and it will get hot reloaded

its expected that cljs source files are in subdirectories, I don't think its a bad rule for other source files

but the error sucks

yeah definitely not a bad rule... just a very confusing error

i guess it would be possible to parse the edn for foreign libs and then parse the path to the js

@bfast actually its still not working

@bfast actually figwheel.main is the way to go here anyway

OK with a clean it works and compiles but I keep getting a bunch of Error: Cannot find module '@cljs-oss/module-deps' errors

yeah that was what was really baffling me

it makes no sense whatsoever

I got this same error in my other project I linked to

when I didn't pass the -c option to cljs.main

I have to step out for a bit but I'll check back later