ngx-quill: Quill on production build not working
hi, i’am using your great module to implement Quill in my app. Everything is working fine on developement stage but as i build my production files Quill kills my app with this error:
ERROR TypeError: aY is not a constructor
Ślad stosu:
sY</n.prototype.ngAfterViewInit@http://lend.local.pl/js/app.js?1509364124839:1:2797287
Pl@http://lend.local.pl/js/app.js?1509364124839:1:30305
Ol@http://lend.local.pl/js/app.js?1509364124839:1:30114
Sl@http://lend.local.pl/js/app.js?1509364124839:1:29992
what can be the cause ? Build uses rollup and aot (angular-seed - npm run build.prod.rollup.aot)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (8 by maintainers)
Hey guys! Old issue, but I had the same problem too. I did a bit of Googling and managed to solve this issue with this import statement:
No idea why it works but it does! 😃
i will wait for update if you find some time to play with it 😃 not planning to change your lib, just wanted you to know what change did work for me, maybe it will help you fix it 😃
normal build works with this import: let Quill: any = QuillNamespace; build with rollup aot works with this import: import Quill from ‘quill’;