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

Cannot import grapesjs #88

Open
eschiebel opened this issue May 2, 2024 · 0 comments
Open

Cannot import grapesjs #88

eschiebel opened this issue May 2, 2024 · 0 comments

Comments

@eschiebel
Copy link

The readme says

import grapesjs from 'grapesjs';
import plugin from 'grapesjs-preset-webpage';

const editor = grapesjs.init({
  container : '#gjs',
  // ...
  plugins: [plugin],
  pluginsOpts: {
    [plugin]: { /* options */ }
  }
  // or
  plugins: [
    editor => plugin(editor, { /* options */ }),
  ],
});

but import grapesjs from 'grapesjs' does not import anything. I can work around this by using const grapesjs = require('grapesjs'), but that's not ideal in a es6 environment.

Maybe this issue belongs in the grapesjs repo.

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

1 participant