ng-pdf-make icon indicating copy to clipboard operation
ng-pdf-make copied to clipboard

Error Can't build --prod Angular 7

Open NithMario opened this issue 5 years ago • 2 comments

ERROR in Error during template compile of 'PdfmakeService' Function calls are not supported in decorators but 'makeDecorator' was called in 'Injectable' 'Injectable' references 'Injectable' 'Injectable' references 'Injectable' 'Injectable' references 'Injectable' 'Injectable' calls 'makeDecorator'.

NithMario avatar Mar 11 '20 12:03 NithMario

getting same error

ng build --prod --aot

Date: 2020-03-24T10:43:36.287Z Hash: 8c0d8ed728f4f83e12c1 Time: 24174ms chunk {0} runtime.26209474bfa8dc87a77c.js (runtime) 1.41 kB [entry] [rendered] chunk {1} main.01ecbc0fcff9207e8cde.js (main) 128 bytes [initial] [rendered] chunk {2} polyfills.a723c36635c3a098c2aa.js (polyfills) 130 bytes [initial] [rendered] chunk {3} styles.aebd6da9781aa7fe7ef9.css (styles) 400 kB [initial] [rendered] chunk {scripts} scripts.97fb01823ac2a30533ee.js (scripts) 2.69 MB [entry] [rendered]

ERROR in Error during template compile of 'PdfmakeService' Function calls are not supported in decorators but 'makeDecorator' was called in 'Injectable' 'Injectable' references 'Injectable' 'Injectable' references 'Injectable' 'Injectable' references 'Injectable' 'Injectable' calls 'makeDecorator'.

samjoshuva avatar Mar 24 '20 14:03 samjoshuva

you have to downgrade the version of pdfmake and don't need to import service should import Module it works fine for me I tried with this long time

NithMario avatar Jun 11 '20 04:06 NithMario