Of course, first I made sure I was reproducing the issue, without this change, I get
ERROR in Error during template compile of 'CoreModule'
Function calls are not supported in decorators but 'IntercomModule' was called.
: Unexpected value 'undefined' imported by the module 'CoreModule in /some/path/src/app/core/core.module.ts'
Error during template compile of 'CoreModule'
Function calls are not supported in decorators but 'IntercomModule' was called.
With this fix, everything goes well now (Angular7, both ng build --prod and ng xi18n)
Checklist:
[x] npm run build runs without error
[x] ng serve spawns app, Intercom messenger is visible and interactive, and there are no errors in the console
Summary of changes:
Honestly, I'm not sure what was the issue, but I found that fix in
ngx-progressbar
which had the same issue some time ago :Other unrelated changes (I'll rollback if you want)
npm i
to work without it, becausenpm ERR! 404 Not Found: flatmap-stream@0.1.1
Intended/example use case:
Of course, first I made sure I was reproducing the issue, without this change, I get
With this fix, everything goes well now (Angular7, both
ng build --prod
andng xi18n
)Checklist:
npm run build
runs without errorng serve
spawns app, Intercom messenger is visible and interactive, and there are no errors in the consoleCloses issue: #74