Unused error: could not find module `ember-qunit`. Ember-cli odd box behavior

I believe that I may have a problem with the environment, but I am pretty sure that I can solve it. I created an ember-cli project, dedicated it to git, added a few things. I followed typical npm install && bower install and tried ember s .

Although the site loads normally, when I looked at http: // localhost: 4200 / tests / to make sure qunit is up and running, I had a few errors.

Uncaught Error: Could not find module `ember-qunit` imported from `ember-project/tests/test-helper

Uncaught Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js".

This immediately raised a red flag, since I had created several ember projects before and did not encounter similar problems. I had my partners (I'm at school), I check the project, run npm install && bower install && ember s , and the qunit module works great for them!

I tried git several times to clone a new repo, I even went so far as to completely remove the node and chat, but no matter what I try, I can not pull up the normal / test test.

My partners worked with virtual machines - Ubuntu and Debian, and I am on a Mac, but it seems that this should not be too big a problem, especially since I created a project!

I have found several places for this ( here , here, and here ), but I cannot come to a conclusion that works for me.

I have the same bower.json as the rest of my group. I have included an image below my file structure, my bower.json and my /index.html tests.

screenshot

Here are some characteristics of the environment:

 ember version: 1.13.13 node: 5.0.0 os: darwin x64 bower: 1.7.1 

One thing I noticed is the difference when I do this to see the npm version, but I'm not sure if it matters or not.

 ember -v npm: 2.14.10 npm -v npm: 3.5.2 
+6
source share
1 answer

This seems to be a regression from working in the beta version of ember-cli. You can track the progress here https://github.com/ember-cli/ember-cli/issues/5411 . At the moment you can add

  app.import('bower_components/qunit/qunit/qunit.js'); app.import('bower_components/ember-qunit/ember-qunit.amd.js'); 

to ember-cli-build.js as a workaround.

0
source

All Articles