jeudi 25 juin 2015

Error loading addon initializer in dummy app while testing beta and canary

(Cross-posting from the Ember forums, I hope for more luck here)

Hi everyone,

I'm currently experiencing a weird issue with Ember beta and canary when running ember try:testall while developing an addon.

In particular, I get error messages about not being able to load an initializer inside the dummy app; release instead passes without any hiccup.


In my addon directory structure I have the following:

// ember-cli-foo/addon/initializers/foo.js

export function initialize(container, application) {
  // ...
}

export default {
  name: 'foo',
  initialize: initialize
};

And:

// ember-cli-foo/app/initializers/foo.js

export {
  default,
  initialize
} from 'ember-cli-foo/initializers/foo';

These have been created via the ember-cli v0.2.7 initializer generator: ember g initializer foo.


When running ember try:testall with the default configuration I get this error:

not ok 5 PhantomJS 2.0 - TestLoader Failures: dummy/tests/acceptance/foo-test: could not be loaded
    ---
        actual: >
            null
        message: >
            Died on test #1     at moduleLoadFailure (http://localhost:7357/assets/test-support.js:5575:15)
                at require (http://localhost:7357/assets/test-loader.js:31:31)
                at loadModules (http://localhost:7357/assets/test-loader.js:21:25)
                at load (http://localhost:7357/assets/test-loader.js:40:35)
                at http://localhost:7357/assets/test-support.js:5584:20: Could not find module `ember-cli-foo/initializers/foo` imported from `dummy/initializers/foo`
        Log: >
    ...

And I can't really see why… Any ideas?

Thanks




Aucun commentaire:

Enregistrer un commentaire