This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-23
Channels
- # beginners (55)
- # boot (37)
- # braid-chat (1)
- # chestnut (3)
- # cider (4)
- # clara (22)
- # cljs-dev (54)
- # cljsrn (3)
- # clojure (114)
- # clojure-italy (12)
- # clojure-losangeles (3)
- # clojure-portugal (1)
- # clojure-russia (1)
- # clojure-spec (30)
- # clojure-uk (67)
- # clojure-ukraine (1)
- # clojurescript (101)
- # core-async (11)
- # cursive (6)
- # data-science (27)
- # datomic (8)
- # figwheel (3)
- # fulcro (59)
- # graphql (2)
- # hoplon (89)
- # jobs (3)
- # jobs-rus (1)
- # leiningen (3)
- # lumo (19)
- # off-topic (9)
- # om (48)
- # pedestal (2)
- # portkey (4)
- # protorepl (19)
- # re-frame (13)
- # reagent (38)
- # remote-jobs (1)
- # ring-swagger (4)
- # spacemacs (10)
- # specter (2)
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'
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}}]}