owsolutions / amazing-time-picker

Timepicker (Clock Picker) for Angular 2, Angular 4 and Angular 5, Angular 6, Angular 7 - Compatible with Angular Material
137 stars 76 forks source link

amzaing-time-picker does NOT work with "@angular/*": "^7.2.1" and "@angular/material": "^7.2.1" #119

Open st-clair-clarke opened 5 years ago

st-clair-clarke commented 5 years ago

Hi, I updated to the above libraries and get the following errors:

Errors

Error during template compile of 'AmazingTimePickerModule'
Function calls are not supported in decorators but 'ɵmakeDecorator' was called
in 'NgModule'
'NgModule' calls 'ɵmakeDecorator'.
node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Can
not redeclare block-scoped variable 'ngDevMode'.
node_modules/amazing-time-picker/node_modules/@angular/core/src/render3/ng_dev_m
ode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'
.
Enngage commented 5 years ago

It does work in my project using both Angular and Material on version 7.2.1. I would suggest you clean up your node_modules and install clean dependencies.

st-clair-clarke commented 5 years ago

removed my node_modules directory and reinstall but same error persists.

st-clair-clarke commented 5 years ago

Sorry. Have to remove library. Clean install on another machine still result in the same error. Only library giving me issues. Hope it can be sorted out.