GrapesJS / blocks-basic

Basic blocks for the GrapesJS editor
BSD 3-Clause "New" or "Revised" License
75 stars 108 forks source link

Blocks basic plugin not loading in React Vite application #48

Open 0x59d opened 1 month ago

0x59d commented 1 month ago

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 = { /**

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

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

Thanks

0x59d commented 1 month ago

Update: Got it running it through the CDN for now