lundi 11 mai 2015

Ember-cli how to add FileSaverjs and Blobjs

I looked at this and that link. I bower installed file-saver and Blob. I am having a similar problem with both components so I will just talk about one.

When I do import FileSaver from 'file-saver';

I get the following error.

Error while processing route: some.route Could not find module `file-saver` imported from `client/pods/some/folder/controller` Error: Could not find module `file-saver` imported from `client/pods/some/folder/controller`

I know the I have file-save because it is in my bower_components folder.

And right about the line that is giving me trouble is the following line.

import Ember from 'ember';

that package is about the file-saver package in my bower_components folder. And the app seems to find that package.




Aucun commentaire:

Enregistrer un commentaire