ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

ckeditor-duplicated-modules (vue, custom)

Open aschurf opened this issue 3 years ago • 1 comments

When building the version built in the online constructor, I get an error

"ckeditor-duplicated-modules"

app.js?v=3.2.1:5420 Uncaught CKEditorError: ckeditor-duplicated-modules Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-ckeditor-duplicated-modules at app.js?v=3.2.1:5420:267741 at app.js?v=3.2.1:5420:1162533 at app.js?v=3.2.1:5420:1162561 at t (app.js?v=3.2.1:5417:117) at ./ckeditor5/build/ckeditor.js (app.js?v=3.2.1:5420:109) at webpack_require (app.js?v=3.2.1:86921:42) at ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/lessons/OpenLessonComponent.vue?vue&type=script&lang=js& (app.js?v=3.2.1:8259:95) at webpack_require (app.js?v=3.2.1:86921:42) at ./resources/js/components/lessons/OpenLessonComponent.vue?vue&type=script&lang=js& (app.js?v=3.2.1:71436:224) at webpack_require (app.js?v=3.2.1:86921:42)

Hi! I've been trying to fix this for several hours, re-read the instructions and followed strictly the steps described here: https://ckeditor.com/docs/ckeditor5/latest/installation/frameworks/vuejs-v3.html#integrating-a-build-from-the-online-builder

My steps:

  1. Assembly in the online constructor
  2. Install as a dependency via npm add file: ./ckeditor5

My package.json { "private": true, "scripts": { "dev": "npm run development", "development": "mix", "watch": "mix watch", "watch-poll": "mix watch -- --watch-options-poll=1000", "hot": "mix watch --hot", "prod": "npm run production", "production": "mix --production" }, "devDependencies": { "@popperjs/core": "^2.10.2", "@tailwindcss/forms": "^0.4.0", "alpinejs": "^3.4.2", "autoprefixer": "^10.4.2", "axios": "^0.25", "bootstrap": "^5.1.3", "laravel-mix": "^6.0.6", "lodash": "^4.17.19", "postcss": "^8.4.6", "postcss-import": "^14.0.2", "resolve-url-loader": "^3.1.2", "sass": "^1.32.11", "sass-loader": "^11.0.1", "tailwindcss": "^3.0.18", "vue-loader": "^15.9.8", "vue-template-compiler": "^2.6.14" }, "dependencies": { "add": "^2.0.6", "ckeditor5-custom-build": "file:ckeditor5", "imask": "^6.4.2", "intro.js": "^5.1.0", "moment": "^2.29.3", "vue": "^2.6.14", "vue-blockui": "^1.1.7", "vue-image-viewer": "^1.1.8", "vue-imask": "^6.4.2", "vue-sweetalert2": "^5.0.5", "vuedraggable": "^2.24.3" } }

package.json from ckeditor folder (from online constructor): { "name": "ckeditor5-custom-build", "author": "CKSource", "description": "A custom CKEditor 5 build made by the CKEditor 5 online builder.", "version": "0.0.1", "license": "SEE LICENSE IN LICENSE.md", "private": true, "main": "./build/ckeditor.js", "devDependencies": { "@ckeditor/ckeditor5-alignment": "^36.0.1", "@ckeditor/ckeditor5-basic-styles": "^36.0.1", "@ckeditor/ckeditor5-editor-classic": "^36.0.1", "@ckeditor/ckeditor5-essentials": "^36.0.1", "@ckeditor/ckeditor5-font": "^36.0.1", "@ckeditor/ckeditor5-heading": "^36.0.1", "@ckeditor/ckeditor5-image": "^36.0.1", "@ckeditor/ckeditor5-link": "^36.0.1", "@ckeditor/ckeditor5-paragraph": "^36.0.1", "@ckeditor/ckeditor5-theme-lark": "^36.0.1", "@ckeditor/ckeditor5-upload": "^36.0.1", "css-loader": "^5.2.7", "postcss": "^8.4.21", "postcss-loader": "^4.3.0", "raw-loader": "^4.0.2", "style-loader": "^2.0.0", "terser-webpack-plugin": "^4.2.3", "webpack": "^5.75.0", "webpack-cli": "^4.10.0" }, "scripts": { "build": "webpack --mode production" } }

I already tried deleting the node_modules and package-lock folder, but that didn't work.

aschurf avatar Feb 20 '23 11:02 aschurf

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Feb 21 '24 03:02 CKEditorBot

We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

CKEditorBot avatar Mar 23 '24 03:03 CKEditorBot