Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading file #134

Open
jasondawe opened this issue Aug 12, 2013 · 3 comments
Open

Error loading file #134

jasondawe opened this issue Aug 12, 2013 · 3 comments

Comments

@jasondawe
Copy link

I've tried to install matador as instructed, but when I cd into my-app/all and run node server.js I get a load of errors

jason@jason:~/jason/my-app/all$ node server.js
Error loading file: models ApplicationModel /home/jason/jason/my-app/all/app ReferenceError: loadClass is not defined
at Function.app.getModel (/home/jason/jason/my-app/node_modules/matador/src/matador.js:365:12)
at module.exports (/home/jason/jason/my-app/all/app/models/ApplicationModel.js:2:14)
at FileLoader. (/home/jason/jason/my-app/node_modules/matador/src/FileLoader.js:64:56)
at /home/jason/jason/my-app/node_modules/matador/node_modules/valentine/valentine.js:167:22
at Array.some (native)
at Object.iters.some.i as some
at Function.iters.find (/home/jason/jason/my-app/node_modules/matador/node_modules/valentine/valentine.js:166:13)
at FileLoader.loadFile (/home/jason/jason/my-app/node_modules/matador/src/FileLoader.js:60:15)
at /home/jason/jason/my-app/node_modules/matador/src/matador.js:319:22
at Array.forEach (native)

ReferenceError: loadClass is not defined
at Function.app.getModel (/home/jason/jason/my-app/node_modules/matador/src/matador.js:365:12)
at module.exports (/home/jason/jason/my-app/all/app/models/ApplicationModel.js:2:14)
at FileLoader. (/home/jason/jason/my-app/node_modules/matador/src/FileLoader.js:64:56)
at /home/jason/jason/my-app/node_modules/matador/node_modules/valentine/valentine.js:167:22
at Array.some (native)
at Object.iters.some.i as some
at Function.iters.find (/home/jason/jason/my-app/node_modules/matador/node_modules/valentine/valentine.js:166:13)
at FileLoader.loadFile (/home/jason/jason/my-app/node_modules/matador/src/FileLoader.js:60:15)
at /home/jason/jason/my-app/node_modules/matador/src/matador.js:319:22
at Array.forEach (native)

Any ideas what is going wrong?

@vinibaggio
Copy link
Contributor

This is a bug that we had and has been fixed in commit fdf7d71. We didn't, however, release a new version of the npm package. You can user master in your packages.json and reinstalling matador. This problem should go away.

@jasondawe
Copy link
Author

Installed from the repo and it now works. Any idea when installing from npm will be ready?
Thanks.

@vinibaggio
Copy link
Contributor

I believe a new version can be released, but I don't have ownership. I will talk to my peers and see when we can do it :)

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

No branches or pull requests

2 participants