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

Make throws a registry.resolve error #218

Closed
ajsridha opened this issue Jul 8, 2016 · 2 comments
Closed

Make throws a registry.resolve error #218

ajsridha opened this issue Jul 8, 2016 · 2 comments

Comments

@ajsridha
Copy link

ajsridha commented Jul 8, 2016

When I try to do: make('user', {status: 'active'});

Source:     
TypeError: registry.resolve is not a function
    at Class._modelForMixin (http://localhost:4200/assets/vendor.js:134911:30)
    at Class.modelFor (http://localhost:4200/assets/vendor.js:134939:26)
    at _default.extractAttributes (http://localhost:4200/assets/vendor.js:235997:20)
    at _default.convertSingle (http://localhost:4200/assets/vendor.js:236255:31)
    at _default.convert (http://localhost:4200/assets/vendor.js:235914:23)
    at _default.convertForBuild (http://localhost:4200/assets/vendor.js:235578:30)
    at FactoryGuy.build (http://localhost:4200/assets/vendor.js:237316:36)
    at Object.<anonymous> (http://localhost:4200/assets/tests.js:22029:36)
    at Object.wrapper (http://localhost:4200/assets/test-support.js:6632:29)
    at runTest (http://localhost:4200/assets/test-support.js:2796:28)

I know it can find factories/user.js correctly. Any ideas why this error appears?

@danielspaniel
Copy link
Collaborator

does your application work fine in development?
can you give me access to your repo so I can see what is happening?
Otherwise I can't help too much because this looks like something really whacky is happening ( in your models .. not factories )

@ajsridha
Copy link
Author

ajsridha commented Jul 8, 2016

It does work find in development. However I can't easily give you access to the repo. But thanks for your idea about the problem existing in the model. I will close this issue. Thanks!

@ajsridha ajsridha closed this as completed Jul 8, 2016
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