plexus / chestnut

Application template for Clojure + ClojureScript web apps
Eclipse Public License 1.0
1.32k stars 99 forks source link

Error when starting the application #237

Closed ebunders closed 5 years ago

ebunders commented 6 years ago

When I start a new chestnut application, It all seems to boot up fine:

user=> (go)
2018-06-22 08:03:35.328:INFO:oejs.Server:nREPL-worker-0: jetty-9.2.21.v20170120
2018-06-22 08:03:35.368:INFO:oejs.ServerConnector:nREPL-worker-0: Started ServerConnector@728edb64{HTTP/1.1}{0.0.0.0:10555}
2018-06-22 08:03:35.369:INFO:oejs.Server:nREPL-worker-0: Started @15088ms
Figwheel: Starting server at http://0.0.0.0:3449
Figwheel: Watching build - app
Compiling build :app to "dev-target/public/js/compiled/chestnut.js" from ["src/cljs" "src/cljc" "dev"]...
Successfully compiled build :app to "dev-target/public/js/compiled/chestnut.js" in 0.532 seconds.
Figwheel: Starting CSS Watcher for paths  ["resources/public/css"]
Started chestnut on http://localhost:10555
:started

But if I open the page in the broser (http://localhost:10555/), I get the following error (in the browser console)

Figwheel: trying to open cljs reload socket
utils.cljs:69:29
Error: Error in component :app-root in system function (__meta,__extmap,__hash){
this.__meta = __meta;
this.__extmap = __extmap;
this.__hash = __hash;
this.cljs$lang$protocol_mask$partition0$ = 2229667594;
this.cljs$lang$protocol_mask$partition1$ = 139264;
} calling #'com.stuartsierra.component/start
core.cljs:11123:10
Figwheel: socket connection established

There is no error in the repl console

featheredtoast commented 6 years ago

Sorry about this - this is probably due to an issue with Om - I'm in the process of updating the template so Reagent is the default.

In the meantime using +reagent to generate your template should work around this.

Hettomei commented 5 years ago

Hi.

I had same problem has @ebunders

Your solution lein new chestnut app-name +reagent works great. Thank you.

featheredtoast commented 5 years ago

Reagent is now the default rendering via #241