qligier / angular4-events

Events is a publish-subscribe style event system based on sqlProvider/angular2-pubsub
7 stars 4 forks source link

angular 6 prod build error #5

Closed nedpuganti closed 6 years ago

nedpuganti commented 6 years ago

ERROR in ../angular4-events/esm/src/angular4-events.module.ts(4,2): Error during template compile of 'EventsModule' Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'NgModule' 'NgModule' calls 'ɵmakeDecorator'.

node_modules/angular4-events/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

qligier commented 6 years ago

Hey, Can you try with the new version (npm install --save angular4-events@5.0.1)? It should fix issues with Angular 6 but I still haven't had time to upgrade my own projects, so feedback would be appreciated.

nedpuganti commented 6 years ago

this is a good one to migrate https://alligator.io/angular/angular-6/

and this command is very easy to update to v6 rxjs-5-to-6-migrate -p src/tsconfig.app.json

qligier commented 6 years ago

Closing this issue as it should have been fixed with v5.0.1 update.