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

needs not resolving after module change #262

Closed
emmagamma opened this issue Apr 6, 2017 · 5 comments
Closed

needs not resolving after module change #262

emmagamma opened this issue Apr 6, 2017 · 5 comments
Labels

Comments

@emmagamma
Copy link

emmagamma commented Apr 6, 2017

v2.1.0...v0.4.23

Prior to this^ change, the module variable would always be declared with a Constructor and now it begins as undefined and is assigned a value inside the setup function.

It seems this has broken the needs in my tests, which aren't being properly resolved, I think as a result of the module not receiving the description either at all or not at the right time?

for now (if you're running into this issue) you should be able to just shrinkwrap or pin the version of q-unit to 4.22, and things should go green again.

@steveax
Copy link

steveax commented Apr 6, 2017

Perhaps a bit of a clue, 0.4.22 output:
ok 50 PhantomJS 2.1 - Exam Partition #1 - Unit | Model | job: it exists

0.4.23 output:
ok 50 PhantomJS 2.1 - Exam Partition #1 - jobs.job: it exists

Test module:

moduleForModel('jobs.job', 'Unit | Model | job', {
  needs: [
    'model:rbac/user',
    'model:jobs/job/node'
  ]
});

Here's the stack trace from the test:

not ok 53 PhantomJS 2.1 - Exam Partition #1 - jobs.job: isRunning
    ---
        actual: >
            null
        stack: >
            http://localhost:7357/assets/vendor.js:177808
        message: >
            Died on test #1 testWrapper@http://localhost:7357/assets/test-support.js:6763:16
            test@http://localhost:7357/assets/test-support.js:6777:44
            http://localhost:7357/assets/tests.js:74613:24
            exports@http://localhost:7357/assets/vendor.js:123:37
            requireModule@http://localhost:7357/assets/vendor.js:38:25
            require@http://localhost:7357/assets/test-loader.js:67:16
            http://localhost:7357/assets/test-support.js:6511:26
            forEach@[native code]
            _loadSplitModules@http://localhost:7357/assets/test-support.js:6510:25
            load@http://localhost:7357/assets/test-loader.js:89:35
            http://localhost:7357/assets/test-support.js:6397:20: No model was found for 'rbac/user'
        Log: |

Ember: 2.4.6
Ember Data: 2.12.1
jQuery: 2.2.4

@trentmwillis
Copy link
Member

Apologies to everyone affected, I'm looking into and will hopefully have a fix shortly

@emmagamma
Copy link
Author

awesome ~ thanks, @trentmwillis!

@steveax
Copy link

steveax commented Apr 6, 2017

No worries, these things happen - feel free to ping if I can provide any more info.

@trentmwillis
Copy link
Member

We've reverted the changes introduced in 0.4.23 and released 0.4.24, which should fix any problems introduced by that release.

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

3 participants