Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

Error when starting the application #237

Closed
ebunders opened this issue Jun 22, 2018 · 3 comments
Closed

Error when starting the application #237

ebunders opened this issue Jun 22, 2018 · 3 comments

Comments

@ebunders
Copy link

ebunders commented Jun 22, 2018

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
Copy link
Collaborator

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
Copy link

Hi.

I had same problem has @ebunders

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

@featheredtoast
Copy link
Collaborator

Reagent is now the default rendering via #241

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants