Issue #4250Opened April 11, 2022by dinosaurawr0 reactions

BUG: init() method typings error

Question

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Chrome v 100.0.4896.75

Reproducible demo link

https://stackblitz.com/edit/typescript-ou8qpc?file=index.ts&view=editor

Describe the bug

How to reproduce the bug?

  1. Try to init grapesjs with with index.d.ts

What is the expected behavior? Editor initialized without errors

What is the current behavior? Type'[string, any]' is not assignable to type '[]'. Source has 2 element(s) but target allows only 0

Code of Conduct

  • I agree to follow this project's Code of Conduct

Answers (1)

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.