Open NithMario opened 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'.
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
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'.