-
Notifications
You must be signed in to change notification settings - Fork 3
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
ReferenceError: global is not defined #17
Comments
Hi @jechazelle, I can confirm the issue. It is related to an issue in the main ckeditor5 repo: ckeditor/ckeditor5#14173. The issue needs to be fixed in the CKEditor 5 packages, and until the proper fix is implemented and released, you can fall back to the 38.1.1 packages of CKEditor 5 that are not affected by this issue when using the editor in Vite applications. |
Fix: Don't rely on `global` object available only in Node. Fixes ckeditor/vite-plugin-ckeditor5#17 and #14801. Internal: Load only specified typings for TypeScript. Closes #14173.
Fix is merged and will be available in the next release. |
Hi,
I follow this guide https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/alternative-setups/integrating-from-source-vite.html but I have an error when I click in ckeditor:
I updated the vite config:
but after I have an other error:
I have no erro when I import
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
.I created a POC to help debug : https://github.com/jechazelle/ckeditor-poc
ckeditor.ts
packages.json
versions:
The text was updated successfully, but these errors were encountered: