Skip to content

Cannot import grapesjs #88

@eschiebel

Description

@eschiebel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions