angular2-simple-countdown icon indicating copy to clipboard operation
angular2-simple-countdown copied to clipboard

Importing error with angular 5 prod build

Open sukhdevsinghsaggar opened this issue 6 years ago • 3 comments

I am importing the module like -

app.module.ts

`import {CountDown} from 'ng4-date-countdown-timer';`
declarations: [
    .. ,
    CountDown
]

While running the ng build --prod command it is giving me the following error -

ERROR in : Unexpected value 'CountDown in /home/jayanth/Documents/Workspace/sozial-front/node_modules/ng4-date-countdown-timer/dist/countdown.d.ts' declared by the module 'AppModule in /home/jayanth/Documents/Workspace/sozial-front/src/app/app.module.ts'. Please add a @Pipe/@Directive/@Component annotation.

sukhdevsinghsaggar avatar Apr 19 '18 06:04 sukhdevsinghsaggar

^

danmarkl avatar Jun 20 '18 08:06 danmarkl

I have the same problem when build for production

safwanazam avatar Sep 03 '18 07:09 safwanazam

Same problem. No solution after more than a year?

mvoggenreiter avatar Jul 01 '19 05:07 mvoggenreiter