Ckeditor5: Editor not found when importing, after creating custom build - why does premade builds work then?

Created on 10 Oct 2020  ·  3Comments  ·  Source: ckeditor/ckeditor5

Building yourself seemingly doesn't work, at least when you @import afterwards. Why is there a difference between:

1) Adding a premade build like InlineEditor from NPM into Vue application that works like a charm. You import the editor and everything works.

2) And Installing own build either from OnlineBuilder or building yourself with Yarn - then you can't import even though it's just another build in your node_modules folder?

✔️ Expected result

I expect to be able to build and get something you can add to your app like:
https://github.com/ckeditor/ckeditor5-build-inline

❌ Actual result

"export 'InlineEditor' was not found in 'ckeditor5-custom-build/build/ckeditor'.

when using:

import InlineEditor from 'ckeditor5-custom-build/build/ckeditor';

After both trying to create custom build with yarn, or downloading from OnlineBuilder, then adding as local package with:

npm i 'path/to/my/local/ckeditor5/build/ckeditor'

📃 Other details

  • Browser: Chrome Latest
  • OS: Ubuntu18

Again i don't understand why the build that i make myself with a few extra plugins is not "found" in the final build file? When i thought the premade builds were made in the exact same way?

Are there some extra steps i have to take to make the editor available for import?

Also thanks for an awesome editor!

--

_(P.S i have tried the integration - but that seemingly doesn't work with Laravel Mix in Laravel 8 that already uses PostCss - 3 days of trying, made an issue here : https://github.com/JeffreyWay/laravel-mix/issues/2533, and commented here https://github.com/ckeditor/ckeditor5-vue/issues/23#issuecomment-706244476)_

feedback bug

Most helpful comment

I have the same problem with custom build

All 3 comments

I have the same problem with custom build

Hi guys, could you please provide exact step-by-step instruction on how to reproduce the issue?

Hi again and thanks for the attention!

To reformulate my question more concisely: you seemingly can't import any custom builds as ES6 modules. You can only load them via