-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Docs] Missing dependency in snippet in Vue integration #1412
Comments
Can you provide your full webpack config? |
I'm getting the same issue on Quasar framework. |
Failed to compile. ./node_modules/@ckeditor/ckeditor5-real-time-collaboration/theme/usermarkers.css (./node_modules/css-loader??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./node_modules/postcss-loader/src??ref--6-oneOf-3-3!./node_modules/@ckeditor/ckeditor5-real-time-collaboration/theme/usermarkers.css) Hi Oleq , I am also getting above issue when integrating and building editor from source |
Can you provide your full webpack config? Also, are you aware that in order to use https://www.npmjs.com/package/@ckeditor/ckeditor5-real-time-collaboration you need a license key? |
@Reinmar sry, I'm not using ckeditor5 right now,Some configurations are no longer available |
The same issue was reported on https://stackoverflow.com/questions/55569896/this-dependancy-was-not-found-when-i-try-to-import-from-ckeditor, but again, without any details. |
I had the same error. The error specifically occurs in |
cc @oleq There's indeed a bug. Theme lark is used but it's never installed in this guide: The React guide, for instance, mention that you need to install it: https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/react.html#installing-missing-dependencies |
I have the same issue, not exactly the same but messages are similar. It seems that using
I didn't find a workaround yet, I'm trying hard to find a place where I could hook on the |
It happens that I'm using @symfony/encore to configure webpack (this is a Symfony project) − my configuration is generated using the Encore tool, and I don't have much power over the generated webpack configuration. Configuring CKEditor5's own CSS include is rather complex, and it doesn't fit at all with Symfony's Encore conf builder. Solution for my use case would be to generate the ckeditor dist on its own with a custom webpack configuration then include the aforementioned dist in my main.js using an import. I'm going to do that. |
After I struggled a lot with regeneratorRuntime, I finally got this. But now, error is:
I started off from a stable release of https://github.com/ckeditor/ckeditor5-build-classic for which I added "@ckeditor/ckeditor5-alignment": "^10.0.4", I think that there is an update somewhere in the dependencies breaking it. |
If you start from the stable branch, then all latest releases will be compatible, i.e. "@ckeditor/ckeditor5-alignment" will be compatible at v.11.1.0.
We use ES6, so transpiling code with Babel isn't necessary for modern browsers. On the other hand, note that CKEditor 5 doesn't officially work yet on IE11, although there's recent work on this field. |
I had the error without using babel, actually. But it might be the fact that I then included in the dist within another project using its own webpack configuration that might have caused the problem. I did succeed it working around this problem though, so that's fine. Now, I have an error raised about Model.createPositionAt() that needs a value for its second argument. I did try compiling from the official classic build repository, using a stable tag, but I always endup having this error. I think this could be due to a specific bug in a specific package version (I did try to find it using a dichotomy search, forcing each dependency version one by one but I could not find it). Sad but it seems that the https://github.com/ckeditor/ckeditor5-build-classic package does not provide a lock file for dependencies versions. No matter how hard I tried, even using the unmodified classic source, I always end up having this error, I don't have it when I use a pre-built official dist. |
I've just followed these steps:
And everything works fine. You can give it a try. |
And hopefully, in this iteration, we'll make a tool that will give you a compilation-time warning when the package versions mismatch (some core packages are duplicated when packages mismatch, so it should be easy to find out). |
Closed by #1775. |
I followed the steps in https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs.html#using-the-editor-from-source and https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/advanced-setup.html#building |
I fixed an issue with exclude in the config and I'm getting a different error now. Appreciate if you can tell if something is incorrect in config. |
Finally got it working with attached config: |
ckeditor5 use advanced-setup
install
Run error :
This dependency was not found:
./node_modules/css-loader??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??ref--6-oneOf-3-2!./node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css, ./node_modules/css-loader??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??ref--6-oneOf-3-2!./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css and 1 other
To install it, you can run: npm install --save -!../../../css-loader/index.js??ref--6-oneOf-3-1!../../../postcss-loader/src/index.js??ref--6-oneOf-3-2!./@ckeditor/ckeditor5-theme-lark/theme/mixins/_rwd.css
The text was updated successfully, but these errors were encountered: