BUG: usePlugin is not a function
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
All
Reproducible demo link
None
Describe the bug
Following the documentation on creating a plugin with the usage of typescript and using the "usePlugin" function to import the plugin into the editor, the browser displays the following error :
TypeError: g.usePlugin is not a function
It seems that the function declaration is not in the minified js of the node module dist.
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (1)
Getting the same issue.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #5149
BUG: Non-named plugins and options
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? all and none, the bug is during the build...
Issue #5148
BUG: none of the official GrapesJS plugins works with the new index.d.ts
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? all and none, the bug is during the build...
Issue #5354
BUG: canvas.script entries do not respect an "import map"
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Version 1.56.20 Chromium: 115.0.5790.171 (Of...
Issue #5144
BUG: Incorrect type definition for PanelManager.addPanel
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? All Reproducible demo link None Describe t...
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.