ngx-lightbox icon indicating copy to clipboard operation
ngx-lightbox copied to clipboard

(peer)depedency now missing from the package.json?

Open jcompagner opened this issue 4 years ago • 3 comments

With the new release 2.5.0 we suddenly have:

An error occurred during the build: Error: The target entry-point "ngx-lightbox" has missing dependencies:

  • ngx-filesaver

because of the pull:

https://github.com/themyth92/ngx-lightbox/pull/103/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R28

I know i can fix this by also including that one in our build, but that is a bit annoying, currently our builds are broken because of the above thing if we just install 2.5.0 version of lightbox.

jcompagner avatar Oct 04 '21 09:10 jcompagner

and if you then just install ngx-filesaver you get:

✖ Compiling with Angular sources in Ivy partial compilation mode. node_modules/ngx-filesaver/src/filesaver.service.d.ts:1:34 - error TS2307: Cannot find module 'file-saver' or its corresponding type declarations.

1 import { FileSaverOptions } from 'file-saver'; ~~~~~~~~~~~~ node_modules/ngx-filesaver/src/filesaver.directive.d.ts:4:34 - error TS2307: Cannot find module 'file-saver' or its corresponding type declarations.

4 import { FileSaverOptions } from 'file-saver'; ~~~~~~~~~~~~

jcompagner avatar Oct 04 '21 09:10 jcompagner

Sorry can u try to install file-saver and ngx-filesaver first. I will need to add both to the peer-denpendancy later

themyth92 avatar Oct 04 '21 10:10 themyth92

Or just use 2.4.1 for now. That version is fine.

themyth92 avatar Oct 04 '21 10:10 themyth92