DanielYKPan / date-time-picker

Angular Date Time Picker (Responsive Design)
https://daniel-projects.firebaseapp.com/owlng/date-time-picker
MIT License
562 stars 358 forks source link

build failed using prod mode #707

Open vikaspathneja opened 4 years ago

vikaspathneja commented 4 years ago

when building with production mode giving issues, while building without production is running fine

Enviornment Versions: node v12.16.2 npm v6.14.4

Dependencies Version: angular/core": "^8.2.14", angular/material": "^8.2.3", angular/material-moment-adapter": "^9.2.0", moment": "^2.27.0", **ng-pick-datetime": "^7.0.0", ngx-bootstrap": "^4.2.0",

---tried both version 1.0.7 ,1.0.8 one by one for testing -------- ng-pick-datetime-moment": "^1.0.8",** ng-pick-datetime-moment": "^1.0.7",**

----------------import statements used in my module---------------------------------- import { DateTimeAdapter, OWL_DATE_TIME_LOCALE, OwlDateTimeIntl } from 'ng-pick-datetime'; import { MomentDateTimeAdapter } from 'ng-pick-datetime-moment';

Tried importing OwlMomentDateTimeModule by both ways ,but both not working in my module-------- // import { OwlMomentDateTimeModule } from 'ng-pick-datetime-moment'; import { OwlMomentDateTimeModule } from 'ng-pick-datetime/date-time/adapter/moment-adapter/moment-date- time.module';

import { OwlDateTimeModule, OwlNativeDateTimeModule, OWL_DATE_TIME_FORMATS } from 'ng-pick-datetime';

ERROR in ../ng-pick-datetime-moment/moment-adapter/moment-date-time-adapter.class.ts(46,2): Error during template compile of 'MomentDateTimeAdapter' Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'Injectable' 'Injectable' calls 'ɵmakeDecorator'.

Attached Zip module typescript file package json file

PackageJsonAndModuleFile.zip

vikaspathneja commented 4 years ago

@DanielYKPan Can you Please check as this is imp and urgent because it needs to go to production enviornment, waiting for your positive response

gongAll commented 4 years ago

⛔ ⛔ ⛔ WARNING : READ BEFORE CREATING ISSUES ⛔ ⛔ ⛔ This library was abandoned by its owner. I tried to contact him about 4 months ago with no success. Please cease to open new issues as they will not be handled by him. If you want, there is a fork created by Daniel Moncada and his team which is being currently maintained. Please don't open new issues here so that new users won't be mislead into believing this repo is still up-to-date.

vikaspathneja commented 4 years ago

Fork created by Daniel Moncada https://github.com/danielmoncada/date-time-picker supports angular 9 , not 8 , so build is failing in 8 , i need it for angular 8,

Please help

On Wed, 15 Jul, 2020, 8:37 pm gongAll, notifications@github.com wrote:

⛔ ⛔ ⛔ WARNING : READ BEFORE CREATING ISSUES ⛔ ⛔ ⛔ This library was abandoned by its owner. I tried to contact him about 4 months ago with no success. Please cease to open new issues as they will not be handled by him. If you want, there is a fork created by Daniel Moncada and his team https://github.com/danielmoncada/date-time-picker which is being currently maintained. Please don't open new issues here so that new users won't be mislead into believing this repo is still up-to-date.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DanielYKPan/date-time-picker/issues/707#issuecomment-658818650, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4MJ2YO3P5MDV5XIOT7E5DR3XA4RANCNFSM4ORIO2OA .

gongAll commented 4 years ago

You either create your own fork and upgrade the repo to angular 8, or you upgrade your project to angular 9, or you simply give up on this datetimepicker. I'm afraid those are your only options.