GrapesJS / GrapesJS/blocks-basic

Blocks basic plugin not loading in React Vite application

未关闭
#48 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
87
派生
114
PR 合并指标
30 天内没有已合并 PR

描述

Hi having an issue with loading blocks basic in a React Vite application using:

`npm i grapesjs-blocks-basic`
 
The module doesn't load with the error:

> Could not find a declaration file for module 'grapesjs-blocks-basic'.

Navigating to the file contains Javascript:

`/*! grapesjs-blocks-basic - 0.1.8 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("grapesjs")):"function"==typeof.....`

Compared to navigating to plugin grapesjs-preset-webpage:
`import { Editor, Plugin } from 'grapesjs';

export type PluginOptions = {
/**
* Which blocks to add.
* @default ['link-block', 'quote', 'text-basic']
*/
blocks?: string[];
.....`

I'm able to load and use the following plugins:

- grapesjs-preset-webpage
- grapesjs-preset-forms

Is anyone else having issue with this module? This is a core module so any help or workarounds are greatly appreciated.

Thanks

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。