wollio / angular2_photoswipe

An angular2 PhotoSwipe component
MIT License
31 stars 14 forks source link

Angular 6 Production Mode failing #3

Closed Carlos95 closed 6 years ago

Carlos95 commented 6 years ago

Hi,

I am using angular2_photoswipe in an angular 6 webpage and when ran with --prod enabled, it gives the following error:

ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'Angular2PhotoswipeModule' was called.

Any idea why this can be happening?

KR

wollio commented 6 years ago

Hi

Sorry for my late reply. I just updated the demo app to angular6 and it seems to work. Do you still have a problem and can you provide a demonstration project? I am now currently updating the whole package.

Kind regards

wollio commented 6 years ago

@Carlos95 I just released version 6.0.0. Can you test it again? Make sure to use the new components and remove the ".forRoot()" on Moduleimport

Carlos95 commented 6 years ago

Hi, thats amazing! This weekend ill give it a try and let you know.

On Wed, 10 Oct 2018 at 21:25, David Wollschlegel notifications@github.com wrote:

I just released version 6.0.0. Can you test it again? Make sure to use the new components and remove the ".forRoot()" on Moduleimport

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wollio/angular2_photoswipe/issues/3#issuecomment-428699976, or mute the thread https://github.com/notifications/unsubscribe-auth/AHtL9_hyRfJYpAGzcaxPaWZuCM7vcjuLks5ujkmTgaJpZM4WdaKW .

wollio commented 6 years ago

@Carlos95 Hi Carlos

Any news about the problem? If you don't feel like to test it, it's okay. But I'll close this issue now, because on my Angular 6 cli generated setup it is working. If the error should persist, please open a new issue :-)

Kind regards

David