thanhtunguet / grapesjs-react

A React wrapper for GrapesJS library
https://thanhtunguet.github.io/grapesjs-react
194 stars 58 forks source link

index.cjs.js requires non existent files #7

Closed sccorby closed 5 years ago

sccorby commented 5 years ago

Does not compile when used within a Create React App.

Lines 5 and 6 of index.cjs.js require two files that do not exist.

var helpers = require('helpers');
require('components/GComponent');

Are these modules located elsewhere?

Thanks!

msteinmn commented 5 years ago

Same issue: ./node_modules/grapesjs-react/dist/index.cjs.js Module not found: Can't resolve 'components/GComponent'

thanhtunguet commented 5 years ago

Does not compile when used within a Create React App.

Lines 5 and 6 of index.cjs.js require two files that do not exist.

var helpers = require('helpers');
require('components/GComponent');

Are these modules located elsewhere?

Thanks!

Thank you for reporting this issue. This is caused because I used absolute import without absolute import plugin.

I have created a fix for it and published in version 1.0.3. Please update your dependencies.