cipchk / ngx-filesaver

Simple file save with FileSaver.js
https://cipchk.github.io/ngx-filesaver/
MIT License
86 stars 18 forks source link

Error when import fileSaverModule #19

Closed chihebelgouthi closed 4 years ago

chihebelgouthi commented 4 years ago

I work with angular 7, I installed the ngx-fileSaver library version 8.1.0 when I import the fileSaverModule I get the following error.

ngx-filesaver.js:55 Uncaught TypeError: Object(...) is not a function at ngx-filesaver.js:55 at Module../node_modules/ngx-filesaver/fesm5/ngx-filesaver.js (ngx-filesaver.js:60) at webpack_require (bootstrap:83) at Module../src/app/modules/swt-toolbox/com/swallow/utils/common.service.ts (common-util.service.ts:22) at webpack_require (bootstrap:83) at Module../src/app/modules/swt-toolbox/com/swallow/controls/title-window.component.ts (swt-vdividedbox.component.ts:70) at webpack_require (bootstrap:83) at Module../src/app/modules/swt-toolbox/index.ts (index.ts:1) at webpack_require (bootstrap:83) at Module../src/app/app.component.ts (main.js:953)

cipchk commented 4 years ago

duplcated of https://github.com/cipchk/ngx-filesaver/issues/16#issuecomment-536144313