laverna icon indicating copy to clipboard operation
laverna copied to clipboard

FileSaver.js broken in bower

Open daed opened this issue 5 years ago • 4 comments

This is assuming you are working from a cloned version of the master branch:

I don't understand bower well enough to speak intelligently about this, but FileSaver.js doesn't install properly when executing "bower install". I think this is something broken on that package maintainer's side, not on laverna's side.

I couldn't get the latest version of FileSaver.js to work properly having tried via a few different methods. Eventually I found a workaround:

  • Manually download the 1.3.4 release of FileSaver.js from https://github.com/eligrey/FileSaver.js/releases/tag/1.3.4.
  • Copy FileSaver.js to app\bower_components\FileSaver

After this, the rest of the setup worked properly. I'm sure there's a way to fix this via bower, but I don't know how yet.

daed avatar Jul 16 '18 15:07 daed

Same error for me - FileSaver directory contains only two files: bower.json and LICENSE.md

petrkrejcik avatar Jul 17 '18 10:07 petrkrejcik

Got the error as well.

Seems due to FileSaver 1.3.8

I ended up setting FileSaver version on bower.json to 1.3.3 instead of * to make it work.

avanaur avatar Oct 23 '18 03:10 avanaur

Got the same error

After search FileSaver.js in current file, I found that the correct path of FileSaver.js is app/bower_components/FileSaver/dist/FileSaver

Then I edit /app/scripts/main.js, set the path of fileSaver to ../bower_components/FileSaver/dist/FileSaver. It works. Might caused by different version of FileSaver

menjunyi avatar Sep 27 '20 16:09 menjunyi

Hi @menjunyi @avanaur @petrkrejcik

Unfortunately, this issue will never be fixed here.

Please report to #998 for the current state of this project and https://github.com/encryptic-team/encryptic for the future of this project.

Stay safe and healthy.

funilrys avatar Oct 03 '20 14:10 funilrys