green-arrow / ember-cli-chosen

Use Chosen in your ember-cli app.
MIT License
5 stars 15 forks source link

Uncaught Error: Could not find module #16

Open NiQ-B opened 9 years ago

NiQ-B commented 9 years ago

Receiving this issue: Uncaught Error: Could not find module ember-cli-chosen/components/ember-chosen imported from squarematics/components/ember-chosen

vendor.js:14338 DEBUG: Ember : 1.13.0-beta.1+canary.41542c6f vendor.js:14338 DEBUG: Ember Data : 1.0.0-beta.17+canary.dcaf77bdc8 vendor.js:14338 DEBUG: jQuery : 2.1.3 vendor.js:14338 DEBUG: Ember Simple Auth : 0.8.0-beta.1 vendor.js:14338 DEBUG: Ember Simple Auth Devise : 0.8.0-beta.1 vendor.js:14338 DEBUG: Ember C3 : 0.1.2

Bower: "chosen": "https://github.com/harvesthq/chosen/releases/download/v1.3.0/chosen_v1.3.0.zip" NPM: "ember-cli-chosen": "https://github.com/green-arrow/ember-cli-chosen/tarball/master"

Not sure where to begin to debug this. I see in both vendor.js and squarematics.js the component loading the correct files.

What I don't see is the jquery plugin loading with $.chosen. I believe there has been changes where libraries with incorrect AMD parameters are failing silently.

FYI this worked correctly on ember-cli ^0.1.15 ember 1.11. Also really not sure if this is an ember-cli-chosen issue that is just the error showing.

Thanks for your help in advance.

\ Updated ** I was in error. There wasn't a $.chosen but there was a global Chosen.

mkolenda commented 9 years ago

Hey @niquelbarron - I'm running into a similar problem:

Uncaught Error: Could not find module ember-cli-chosen/components/ember-chosen

bower.json: "chosen": "https://github.com/harvesthq/chosen/releases/download/v1.3.0/chosen_v1.3.0.zip", package.json: "ember-cli-chosen": "0.0.3",

template:

{{#ember-chosen value=singleSelectValue}}

{{/ember-chosen}}

What did you do to fix your problem? Maybe it will help me. Thanks in advance!

Matt