ngx-editor: [BUG] Including NgxEditorModule break AOT in Angular Universal
I’m submitting a
- Regression (a behavior that used to work and stopped working in a new release)
- Bug report
- Enhancement
- Feature request
- Documentation issue or request
Description
running yarn add ngx-editor ngx-boostrap codemirror font-awesome will cause angular to break when using AOT compiling. I am currently using NestJS which is a NodeJS based server that is serving the angular app with Universal. Running ng serve serves the angular site fine and causes no problems but with AOT the server just does not run.
Version Information
ngx-editor: 3.3.0-rc.13
angular: 5.2.0
Browser
- Chrome - x.x.x
- Mozilla Firefox - 59.0.2
- Opera - x.x.x
- Microsoft Edge - x.x.x
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (7 by maintainers)
Commits related to this issue
- refactor: remove code-editor support BREAKING CHANGE: Code Editor is no longer supported closes #83, closes #94, fix #96, closes #101 — committed to sibiraj-s/ngx-editor by sibiraj-s 6 years ago
- refactor: remove code-editor support BREAKING CHANGE: Code Editor is no longer supported closes #83, closes #94, fix #96, closes #101 — committed to sibiraj-s/ngx-editor by sibiraj-s 6 years ago
@Sibiraj-S it’s a perfect decision, but I disagree about font-awesome. Font-awesome won’t be the real problem anyways, but “Codemirror” library is a real headache!
By the way, if you’ll succeed with that - you’ll be the only one WYSIWYG editor working with out-of-box angular’s universal.
Hm and I am using latest Angular CLI + universal, and getting the following weird error:
ERROR in ./ngx-editor/ngx-editor.ngfactory.js ERROR in ./src/app/app.module.ngfactory.js Module not found: Error: Can't resolve 'ngx-editor' in '/src/app' ERROR in ./src/app/admin/dashboard/d-entry/d-entry-new/d-entry-new.component.ngfactory.js Module not found: Error: Can't resolve 'ngx-editor' in '/src/app/admin/dashboard/d-entry/d-entry-new'
Let me know if you’ve any ideas how to workaround this. I am new to Universal, so maybe just noobish mistake (I’ll look forward to resolution).
UPD: Fixed this -.-‘’ Was my fault, by trying to use it from src (since I was made few changes), and tryin’ to compile src with this library -.-‘’
Thank you. Would love to use this package as it works very nicely and is really easy to include but we are using universal.