Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

could not find module chai (new module unification) #37

Closed

Description

I started migrating our app using https://github.com/rwjblue/ember-module-migrator/ and the https://github.com/emberjs/ember-module-unification-blueprint. The app builds successfully, but fails to load from the following error:
screen shot 2017-09-25 at 8 37 27 am
The import lines in that test file are:

import { expect } from 'chai';
import { describe, it, beforeEach } from 'mocha';
import Ember from 'ember';
import { initialize } from "web-server/src/init/initializers/application/initializer";
import destroyApp from 'web-server/tests/helpers/destroy-app';
import sinon from 'npm:sinon';
$ npm ls chai
└─┬ [email protected]
  └── [email protected] 

Our project's vendor.js does not appear to have chai loaded. This is a private repo but I am happy to test it / move this issue to a more relevant location.

Activity

  1. Turbo87 commented on Sep 25, 2017

    @Turbo87
    Member

    @rwjblue @mixonic any ideas?

  2. mixonic commented on Sep 25, 2017

    @mixonic
    Member

    @efx I'm surprised moving to module unification would break this kind of import. Scanning the code chai should be in the vendor tree. If it was exposing the library via the app/ directory I would expect issues, but on the surface this looks fine.

    I think this simply needs to be debugged. I don't see anything in that index.js that seems coupled to the app/ tree.

  3. ghost closed this as completedon Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions