figwheel-main

figwheel-main http://figwheel.org
ingesol 2019-10-21T05:55:16.024700Z

Any hints on how to prevent duplication in compiler configs? We have a comprehensive list of :foreign-libs, which needs to be duplicated in our dev, prod and test configs. I tried using the (experimental) :npm config that generates the foreign libs, but couldn’t get it working. Is there any way to reuse parts of config between builds? Using leiningen.

ingesol 2019-10-21T06:15:40.024900Z

Underlying problem being that things like :preloads and :closure-defines should be different between builds. Is there a way to override with command line params?

paulbutcher 2019-10-21T13:05:09.027800Z

I have a re-frame app, running on Electron and compiled using Figwheel Main. Everything works fine (really well, in fact) but I’m getting errors in the Javascript console about Figwheel not being able to load react:

[Figwheel REPL] Figwheel: Error loading file /Users/paul/Personal/opentrack/resources/node/renderer/cljsjs/react-dom/development/react-dom.inc.js
[Figwheel REPL] Error: Cannot find module 'react'
[Figwheel REPL] Error loading file ../cljsjs/react-dom/development/react-dom.inc.js
Certainly react is being loaded (because the app runs fine). Any ideas what might be causing the above errors? And what (if anything) I should be worried about?