figwheel

general discussion about figwheel, specific discussions in #figwheel-main and #lein-figwheel
sashton 2017-08-23T18:11:41.000160Z

Are the instructions here https://github.com/bhauman/lein-figwheel/wiki/Node.js-development-with-figwheel still valid? Even though I’ve done npm install ws, I still get an error:

$ node target/server_out/node_main.js
Hello from the Node!

_/node_modules/ws/index.js:9
const WebSocket = require('./lib/WebSocket');
^^^^^
Figwheel: Can't start Figwheel!! Please make sure ws is installed
 do -> 'npm install ws' 

sashton 2017-08-23T18:12:34.000322Z

project.clj:

:plugins [[lein-cljsbuild "1.1.7"]
            [lein-figwheel "0.5.13"]]

  :clean-targets ^{:protect false} ["target"]

  :cljsbuild {:builds
              [{:id "dev"
                :source-paths ["src"]
                :figwheel true
                :compiler {:main command-tools.node-main
                           :output-to "target/server_out/node_main.js"
                           :output-dir "target/server_out"
                           :target :nodejs
                           :optimizations :none
                           :source-map true}}]}

sashton 2017-08-23T18:27:34.000553Z

forget what I said… I had an old node version installed