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

`Cannot find module..." #636

Closed
srsgores opened this issue May 30, 2014 · 3 comments
Closed

`Cannot find module..." #636

srsgores opened this issue May 30, 2014 · 3 comments

Comments

@srsgores
Copy link

Not sure how I'm supposed to load in new modules, but I tried loading in ember-notify and got the following error:

Cannot find module "ember-notify"

In app.js:

import Notify from "ember-notify";

In index.html:

<script src="/vendor/ember-notify/dist/named-amd/main.js"></script>

This error doesn't just apply to ember-notify, but to any imports for external scripts. Am I missing something? Some help would be appreciated.

@davidgovea
Copy link

Sounds like you need to add it to the tasks/options/validate-imports.js whitelist.

See docs here

@fsmanuel
Copy link
Collaborator

@srsgores did @davidgovea's suggestion solved your problem?

@srsgores
Copy link
Author

Worked! Thanks!

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

3 participants