Issue #369💬 AnsweredOpened October 3, 2017by ateshuseyin0 reactions

Usage from source failed

Quick answerby ateshuseyin

At DevicesView.js:5 there is underscore usage w/o require: template: _.template(`

Read full answer below ↓

Question

I tried to use grapesjs from source by using require('grapesjs/src') to debug both my source and grapesjs. But could not success because of below issues;

  • There is some requires like require('plugin_manager'). These can be passed by webpack config but it is not a nice solution.
  • '<# VERSION #>' preprocessing should be done by git hooks, not compile time.
  • There is no guide about usage from source.

I think this issue is very imported to identify the bugs of grapesjs.

Answers (3)

ateshuseyinOctober 3, 2017

At DevicesView.js:5 there is underscore usage w/o require: `template: _.template(``

ateshuseyinOctober 3, 2017

I just notice that you are using ProvidePlugin. That is a solution but these kind of configurative solutions are a limitation to grapesjs users which are using from source.

artfOctober 4, 2017

correct @ateshuseyin I just never configured it to work properly from source, indeed have to move few configurations from webpack to npm. Appreciate your help 👍

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.