【发布时间】:2015-10-09 17:04:07
【问题描述】:
背景
我正在尝试将 figwheel 与 electron(atom-shell) 集成。我用
lein new figwheel hello-world -- --reagent
生成figwheel 部分,并从electron quick start 复制电子部分。生成的项目是here。
问题
通过以下方式运行项目:
- 打开终端并启动 figwheel
lein figwheel - 打开另一个终端,通过
electron .启动Electron。
但是它在 Mac 上失败了。电子部分显示如下日志:
[5848:0720/220633:INFO:CONSOLE(62)] "WebSocket connection to 'ws://localhost:3449/figwheel-ws/dev' failed: Connection closed before receiving a handshake response", source: file:///Users/foo/repos/cljs-douban/resources/public/js/compiled/out/figwheel/client/socket.js (62)
[5848:0720/220635:INFO:CONSOLE(82)] "Figwheel: trying to open cljs reload socket", source: file:///Users/foo/repos/cljs-douban/resources/public/js/compiled/out/figwheel/client/utils.js (82)
但是,同样的项目也可以在 Linux 上运行。谷歌搜索,没有正确的结果,请帮忙。
【问题讨论】:
标签: node.js macos electron figwheel