Skip to content

Uncaught (in promise) TypeError: i.includes is not a function when adding a block #16055

@angelokeirsebilck

Description

@angelokeirsebilck

Description

I am using a CK Editor field with Entry type blocks.

On 1 page, the single section for the homepage i'm getting a JS error when adding blocks to my CK Editor field. I have 3 languages: NL,FR and EN. I only get this error on EN and FR.

When adding the block I get an JS error in the console:

Uncaught (in promise) TypeError: i.includes is not a function at ElementEditor.js:1147:18

On other pages using the same setup/CK Editor field I don't get this error.

Expected behavior

On other pages when adding the block I can see the block added in the CK Editor field.

Actual behavior

No block is added, console gives me JS error.

Additional info

  • Craft version: Craft Pro 5.4.10.1
  • PHP version: 8.3.13
  • Database driver & version: MySQL 18
  • Plugins & versions:

Amazon S3 2.2.1
Button Box 5.0.0
CKEditor 4.3.1
Control Panel CSS 3.0.0
Elements Panel 3.0.0
Embedded Assets 5.3.0
Formie 3.0.9
Hyper dev-craft-5
Image Resizer 4.0.1
Knock Knock 3.0.1
Minify 5.0.0
SEOmatic 5.1.5
Social Share 2.0.2
Sprig 3.5.1
Vite 5.0.1

I'm happy to give more details/db if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions