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

Could not find module ember-qunit #277

Closed
Sandeeprao69 opened this issue Jun 25, 2017 · 3 comments
Closed

Could not find module ember-qunit #277

Sandeeprao69 opened this issue Jun 25, 2017 · 3 comments

Comments

@Sandeeprao69
Copy link

Hi, I am trying to run tests in my Ember application.

It works fine until I add cropperjs to my ember-cli-build.js file. Once i add this line

app.import('bower_components/cropperjs/dist/cropper.js');

It gives Could not find module ember-qunit

https://github.com/fengyuanchen/cropperjs

@trentmwillis
Copy link
Member

Can you please share a reproduction of your issue? My guess would be that the library you're including is breaking something which causes the module definition to not be parsed in the browser which would make it appear to be undefined.

@Sandeeprao69
Copy link
Author

I don't know how do i share it with you. But you can create one ember project, Install cropper js by bower install cropperjs --save
and import it in your app by adding
app.import('bower_components/cropperjs/dist/cropper.js'); to ember-cli-build.js

@Sandeeprao69
Copy link
Author

I have resolved the issue by moving cropperjs from bower to npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants