BennyFranco / ng-pdf-make

This is library creates a bridge to use pdfmake library with your angular 2 implementation.
16 stars 15 forks source link

Error Can't build --prod Angular 7 #16

Open NithMario opened 4 years ago

NithMario commented 4 years ago

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 commented 4 years ago

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'.

NithMario commented 4 years ago

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