Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks basic plugin not loading in React Vite application #48

Open
0x59d opened this issue Aug 15, 2024 · 2 comments
Open

Blocks basic plugin not loading in React Vite application #48

0x59d opened this issue Aug 15, 2024 · 2 comments

Comments

@0x59d
Copy link

0x59d commented Aug 15, 2024

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

@0x59d
Copy link
Author

0x59d commented Aug 16, 2024

Update: Got it running it through the CDN for now

@alaksandarjesus
Copy link

What do you mean by running it through CDN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants