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

Example fails with reopenClass, Cannot read property 'lookup' of undefined #377

Open
enspandi opened this issue Apr 30, 2019 · 1 comment
Labels

Comments

@enspandi
Copy link

Example in dummy folder is not working:

https://github.com/mike-north/ember-api-actions/blob/master/tests/dummy/app/models/fruit.js#L31-L37

build-url.js:42 Uncaught TypeError: Cannot read property 'lookup' of undefined
    at _getStoreFromRecord (build-url.js:42)
    at Function.runCollectionOp [as juiceAll] (collection-action.js:14)
    at Class.juiceAllFruit (index.js:58)
@ghost
Copy link

ghost commented Feb 4, 2020

Having the same issue trying to invoke a collectionAction from the Model class.
Not really familiar with the internals, but I don't get how it could be possible to use a collectionAction without a record instance.

@Turbo87 Turbo87 added the bug label Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants