Use tsup-node build grapesjs 出现 未捕获错误:不支持“codemirror/lib/codemirror”的动态要求
问题
GrapesJS 版本 [X] 我确认使用最新版本 GrapesJS 你用的是什么浏览器? 最新版本的Chrome浏览器 可复制演示链接 无效 描述一下那个虫子 如何复现这个漏洞?Tup-Node SRC/index.ts --format esm,cjs --legacy-output --watch 预期的行为是什么? 我用Vite来建造 grapesjs 目前的行为是什么?<img width=“1126” alt=“image” src=“https://github.com/GrapesJS/grapesjs/assets/114127651/26e08b79-17e9-42ca-9133-dae9a32313d4”><img width=“657” alt=“image” src=“”https://github.com/GrapesJS/grapesjs/assets/114127651/a89640e6-a3e6-4c82-84b1-d268d861e2a0“><img width=“1457” alt=“image” src=“https://github.com/GrapesJS/grapesjs/assets/114127651/ebb4fd65-602b-444f-98e9-d8d02904e8de”><img width=“1317” alt=“imag...
回答(2)
我觉得你得向 Vite 社区反映这个问题,核心现在用的是 webpack,运行正常
谢谢你举报,@pittleCheung。 关于use tsup-node build grapesjs appear Uncaught Error:不支持“codemirror/lib/codemirror”的动态要求,非常好的问题。GrapesJS 推荐的方法是使用事件驱动 API。 从这里开始: 查看你所在模块的[GrapesJS文档](https://grapesjs.com/docs/) 寻找“on()”事件监听器方法 大多数操作可以通过监听编辑器和组件事件来实现 常见模式: “JavaScript 留意变化 editor.on('change', () => console.log...
相关问答
通过相似的问题讨论继续研究。
问题 #5263
如果删除组件但不删除其对应样式,之后添加新组件会导致样式冲突吗?
GrapesJS 版本 [X] 我确认使用最新版本 GrapesJS 你用的是什么浏览器? 最新版本的Chrome浏览器 可复制演示链接 无效 描述一下那个虫子 如何复现这个漏洞? <img width=“1666” alt=“image” src=“https://githu...
问题 #5346
删除组件而不删除其对应样式
GrapesJS 版本 [X] 我确认使用最新版本 GrapesJS 你用的是什么浏览器? 最新版本的Chrome浏览器 可复制演示链接 https://grapesjs.com/demo.html 描述一下那个虫子 如何复现这个漏洞? <img width=“1665” al...
问题 #5249
编辑?Css.addRules(targetCss);
GrapesJS 版本 [X] 我确认使用最新版本 GrapesJS 你用的是什么浏览器? 最新版本的Chrome浏览器 可复制演示链接 无效 描述一下那个虫子 如何复现这个漏洞? 编辑器?Css.addRules(targetCss); 预期的行为是什么? 编辑器?。Css....
问题 #5484
Clone Tab 和 Clone Tab 目前没有
GrapesJS 版本 [X] 我确认使用最新版本 GrapesJS 你用的是什么浏览器? 最新版本的Chrome浏览器 可复制演示链接 https://grapesjs.com/demo.html 描述一下那个虫子 https://github.com/GrapesJS/co...
与此问题匹配的付费插件
根据问题关键词和标签相关性精选,助你更快交付。
正在加载付费插件推荐……
相关教程
关于同一主题的深入指南。
教程
Introducing Search on GJS.Market
GJS.Market now has one search across everything we publish — plugins, articles, community questions, guides, authors and services. Press ⌘K from any page.
教程
如何在2026年用 GrapesJS 构建AI驱动的页面构建器
我们构建GJSDocs的经验——从简单的AI文本生成到结构化、上下文感知的视觉编辑
教程
2026年构建一个SaaS页面构建器需要多少钱?
2026年构建一个SaaS页面构建器的成本是多少?探索实际的开发成本、时间表、功能,以及使用 GrapesJS 如何降低成本
浏览插件分类
直接跳转到市场上的插件分类页面。