Not able to use plugin: grapesjs-custom-code
Hi @megarg actually new plugins (presets are not yet updated) use a new export format which makes this import import 'grapesjs-custom-code'; not usable. You can see the example of usage of new plugins here
Read full answer below βQuestion
I am trying to add "custom code plugin" but getting an error in console that "Plugin grapesjs-custom-code not found"I have created an react app and this is part of a reach component. Note that this is working fine when I add the plugin from a html page rather than react component.This issue is only with "grapesjs-custom-code". "gjs-preset-webpage" is working fine I may be doing something silly wrong in my react component or there may be a bug. I have been trying to figure this out for hours and need some help please. Following is my react component code import React, { Component } from 'react...
Answers (2)
Hi @megarg actually new plugins (presets are not yet updated) use a new export format which makes this import import 'grapesjs-custom-code'; not usable. You can see the example of usage of new plugins here
Let me provide some more details: -----Configuration----- $ node -v v10.15.3
$ npx node-sass -v node-sass 4.12.0 (Wrapper) [JavaScript] libsass 3.5.4 (Sass Compiler) [C/C++]
OS is: Windows 10
Will really appreciate any pointers on why this plugin is giving this error.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3575
Grapes.min.js:2 Uncaught TypeError: Cannot read property 'length' of undefined
I got this error when add the <iframe src="https://app.conversiobot.com/boot/fvMEvO" width="100%" height="500" frameBorder="0" allow="geolo...
Issue #6152
CSS added via custom code persists after custom code component is removed
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? any Reproducible demo link https://grapesj...
Issue #3457
Custom trait input not working
Hi @artf ! Version: 0.17.3 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? The input is create...
Issue #3270
How to export JS code from angular components?
Hey, I am using grapesjs in my Angular app I have a custom angular component (which is basically custom HTML created with angular) and I am...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins βPremium plugins ship with support, regular updates, and production-ready features β save days of integration work.
Browse premium plugins βBrowse Plugin Categories
Jump directly to plugin category pages on the marketplace.