This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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. |
filipsobol
added a commit
to ckeditor/ckeditor5
that referenced
this issue
Aug 25, 2023
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: