-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module duplicate using classic editor custom build of ckeditor stable branch. #144
Comments
I also use the plugin with version 41.4.2 because the author said it needs time to migrate to version 42+. #143 |
I have the same problem with you |
@Q9-K Can you guide me how to run this package without duplicate module error |
@foryougautam You can try removing package-lock.json file, node_modules and remove ^ before version of plugins in package.json file
|
You mean ckeditor-vue or the ckeditor-math plugin? From my experience, ckeditor will throw duplicated modules error if there exists the same components with different version import: for example, if you use ckeditor-math and it says it depends on ckeditor 41.4.2, and you use the latest ckeditor-vue and it says it needs version 42+, then you will find the problem. So no matter what plugin you use, you should check the root directory's package.json. And if you use ckeditor as a local node_module which looks like link: or file: in package.json, you also need to check the local node_module's package.json. For ckeditor-vue, the offical version doesn't provide a version for 41+, so I just clone the source code and change it's package.json's version about ckeditor to 41.4.2, then build it and import as a local node_module for my project. |
@Q9-K your solution isn't clear, which of the packages needs to be downgraded? |
This is my root project's dependencies. I use ckeditor5-vue and ckeditor5-super by building them as local node_modules. |
I am using your plugin to support math formulas, but it is not compatible with CKEditor version 41.4.2. I am encountering a module duplication error while using a custom build of CKEditor's classic editor from the stable branch." Please suggest if I am missing something
My package json
{
"name": "@ckeditor/ckeditor5-build-classic",
"version": "41.4.2",
"description": "The classic editor build of CKEditor 5 – the best browser-based rich text editor.",
"keywords": [
"ckeditor5-build",
"ckeditor",
"ckeditor5",
"ckeditor 5",
"wysiwyg",
"rich text",
"editor",
"html",
"contentEditable",
"editing",
"operational transformation",
"ot",
"collaboration",
"collaborative",
"real-time",
"framework"
],
"main": "./build/ckeditor.js",
"types": "./build/ckeditor.d.ts",
"files": [
"build",
"ckeditor5-metadata.json",
"CHANGELOG.md"
],
"dependencies": {
"@ckeditor/ckeditor5-adapter-ckfinder": "41.4.2",
"@ckeditor/ckeditor5-autoformat": "41.4.2",
"@ckeditor/ckeditor5-basic-styles": "41.4.2",
"@ckeditor/ckeditor5-block-quote": "41.4.2",
"@ckeditor/ckeditor5-ckbox": "41.4.2",
"@ckeditor/ckeditor5-ckfinder": "41.4.2",
"@ckeditor/ckeditor5-cloud-services": "41.4.2",
"@ckeditor/ckeditor5-easy-image": "41.4.2",
"@ckeditor/ckeditor5-editor-classic": "41.4.2",
"@ckeditor/ckeditor5-essentials": "41.4.2",
"@ckeditor/ckeditor5-heading": "41.4.2",
"@ckeditor/ckeditor5-image": "41.4.2",
"@ckeditor/ckeditor5-indent": "41.4.2",
"@ckeditor/ckeditor5-link": "41.4.2",
"@ckeditor/ckeditor5-list": "41.4.2",
"@ckeditor/ckeditor5-media-embed": "41.4.2",
"@ckeditor/ckeditor5-paragraph": "41.4.2",
"@ckeditor/ckeditor5-paste-from-office": "41.4.2",
"@ckeditor/ckeditor5-table": "41.4.2",
"@ckeditor/ckeditor5-typing": "41.4.2",
"@isaul32/ckeditor5-math": "^41.4.2"
},
"devDependencies": {
"@ckeditor/ckeditor5-core": "41.4.2",
"@ckeditor/ckeditor5-dev-translations": "^42.0.0",
"@ckeditor/ckeditor5-dev-utils": "^41.0.0",
"@ckeditor/ckeditor5-theme-lark": "41.4.2",
"terser-webpack-plugin": "^4.2.3",
"typescript": "5.0.4",
"webpack": "^5.58.1",
"webpack-cli": "^4.9.0"
},
"author": "CKSource (http://cksource.com/)",
"license": "GPL-2.0-or-later",
"homepage": "https://ckeditor.com/ckeditor-5",
"bugs": "https://github.com/ckeditor/ckeditor5/issues",
"repository": {
"type": "git",
"url": "https://github.com/ckeditor/ckeditor5.git",
"directory": "packages/ckeditor5-build-classic"
},
"scripts": {
"build": "webpack --mode production",
"postbuild": "tsc -p ./tsconfig.types.json"
}
}
The text was updated successfully, but these errors were encountered: