The duplicated-modules error is usually caused by:
- adding plugins to an already built editor,
- having different versions of editor packages,
- or loading two or more editors on a page.
In most of the cases, it can be easily fixed by following the recommendations explained in the documentation.