Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Realtime broken ? #422

Closed
daslicht opened this Issue Jul 21, 2013 · 7 comments

Comments

Projects
None yet
3 participants

Hello,
when I create a resource like this:

geddy gen scaffold -rt thing title description

and open the things route in the browser i get such errors:

Uncaught ReferenceError: exports is not defined 
models.js:44

Uncaught TypeError: Cannot read property 'modelName' of undefined 
core.js:12685

What am I missing ?

Contributor

Techwraith commented Jul 22, 2013

@daslicht Was the app also generated with the -rt flag?

I tried it again by exactly doing this:

geddy app -rt demo

NOTE: app command is deprecated.

Please use geddy gen app

$ geddy scaffold -rt thing title description

NOTE: scaffold command is deprecated.

Please use geddy gen scaffold

[Added] app/models/thing.js
[Added] db/migrations/20130723170905_create_things.js
[Added] test/models/thing.js
[Added] test/controllers/things.js
[Added] app/controllers/things.js
[Added] Resource things route added to config/router.js
[Added] View templates

and than run it with:
geddy

Results in :
http://i.imgur.com/OQJ1uRJ.png

?

I have the same issue...
Do someone have updates and know how to resolve it?

Contributor

Techwraith commented Aug 7, 2013

@ASerputko - did you generate your app with the -rt flag?

@Techwraith - yes, I did

I just used next several commands:
geddy gen app -rt demo
cd demo
geddy gen scaffold -rt thing title description
geddy

Then I open browser http://localhost:4000/things
and open "Inspect Element" tool in Google Chrome.

There are 2 javascript errors in the console tab:

Uncaught ReferenceError: exports is not defined models.js:45
Uncaught TypeError: Cannot read property 'modelName' of undefined core.js:12685

My current geddy version is 0.9.12

daslicht commented Aug 8, 2013

@ASerputko : If you looks for a working Realtime Solution you probably like to check out:
http://sailsjs.org/

Its working out of the box without any issues

@mde mde closed this in #461 Oct 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment