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?
- 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)
Thanks @dinosaurawr that was fixed here https://github.com/artf/grapesjs/pull/4216/files
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4474
BUG: Running in headless mode requires window
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 103.0.5060.134Reproducible demo link...
Issue #4506
BUG: Error on drag block with dragmode: absolute
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v103 Reproducible demo link https:/...
Issue #5019
BUG: Can't set preview mode on editor init when using loadProjectData()
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v111 Reproducible demo link https:/...
Issue #4940
BUG: Destroying and re-initializing produces "Cannot read properties of undefined (reading 'get')"
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Google Chrome Version 110.0.5481.100 (Offi...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.