matteodem/meteor-boilerplate

Root models folder not working

imranur8 opened this issue · 5 comments

I tried to keep individual models file in root models folder, but seems like it's not loading before client scripts. So I was getting an error. But if i keep those models file in root lib folder it's working.

What's the way to work with root models folder ?

This should work with the latest version 1.3, where you can define load order of files.

I can not get this working, I use orion generate model but when I add the publication says the model is undefined, could you check out https://github.com/diedu89/mb-test if you get some time

i just tried and it worked for me.

On Mon, Sep 12, 2016 at 2:27 AM, Diego Melendez notifications@github.com
wrote:

I can not get this working, I use orion generate model but when I add the
publication says the model is undefined, could you check out
https://github.com/diedu89/mb-test if you get some time


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#92 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEFSC3nc7EOBJyQu8pnOzKmIPk5WqCkpks5qpPC8gaJpZM4F3t7q
.

phone: 201-742-2104
linkedIn: www.linkedin.com/in/ingridspielman
website: www.ingridswebsite.com/

feel free to create a new issue if the problem keeps persisting

@ingrid88 really? my project repo worked for you? I still getting this error in the server console because the model variable is undefined in the publication function context, any idea?
I20160912-21:54:57.384(-6)? Exception from sub jobs id M4y97wXPMC994G9KE ReferenceError: jobs is not defined
I20160912-21:54:57.384(-6)? at Subscription.handler (server/publications/jobs.js:3:12)
I20160912-21:54:57.384(-6)? at packages/check/match.js:107:1
I20160912-21:54:57.385(-6)? at [object Object].
.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20160912-21:54:57.385(-6)? at Object.exports.Match._failIfArgumentsAreNotAllChecked (packages/check/match.js:106:1)
I20160912-21:54:57.386(-6)? at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1708:18)
I20160912-21:54:57.386(-6)? at Subscription._runHandler (packages/ddp-server/livedata_server.js:1026:17)
I20160912-21:54:57.387(-6)? at Session._startSubscription (packages/ddp-server/livedata_server.js:845:9)
I20160912-21:54:57.387(-6)? at Session.sub (packages/ddp-server/livedata_server.js:617:12)
I20160912-21:54:57.387(-6)? at packages/ddp-server/livedata_server.js:551:43