smashweaver / ember-cli-nprogress

MIT License
11 stars 4 forks source link

Could not find module `nprogress` imported from `ember-cli-nprogress/index` #7

Open vitoravelino opened 7 years ago

vitoravelino commented 7 years ago

Hello there,

Not sure if someone already pointed this problem but I just ran ember install ember-cli-nprogress and after page refreshing I got this error on devtools console:

Could not find module `nprogress` imported from `ember-cli-nprogress/index`
at missingModule (vendor.js:248)
    at findModule (vendor.js:259)
    at Module.findDeps (vendor.js:199)
    at findModule (vendor.js:262)
    at Module.findDeps (vendor.js:199)
    at findModule (vendor.js:262)
    at Module.findDeps (vendor.js:199)
    at findModule (vendor.js:262)
    at requireModule (vendor.js:29)
    at vendor.js:148097

Any idea what could be? I'm new to the Ember world so...

I'm running it under:

Ember CLI 2.11.0 Ember 2.8

Tested with 0.1.3, 0.1.2 and 0.1.0.

Thank you! :)

vitoravelino commented 7 years ago

Update: After debugging I found that the problem is related to

import nprogress from 'nprogress'

inside addon/index.js. It doesn't find it.

I tested with the latest version of Ember and it worked but I can't upgrade Ember on this project yet. Any ideas how to solve this problem?