Mautic Community Forums

Error npm building grapesjs plugin - resolved

hey can someone tell me how to build grapesjsbuilder? I am trying to make a email compatible video block but im stuck on:

 [~/flow.numinousonline.com/plugins/GrapesJsBuilderBundle]# npm run build
> grapesjsbuilderbundle@1.0.0 build plugins/GrapesJsBuilderBundle
> parcel build Assets/library/js/builder.js --out-dir Assets/library/js/dist --public-url ./
:rotating_light:plugins/GrapesJsBuilderBundle/Assets/library/js/builder.js:6:7: Cannot resolve dependency 'grapesjs/dist/css/grapes.min.css'
  4 |
  5 | // all css get combined into one builder.css and automatically loaded via js/parcel
> 6 | import 'grapesjs/dist/css/grapes.min.css';
    |       ^
  7 | // not compatible with the newsletter preset css, brings the redish color
  8 | // import 'grapesjs-preset-webpage/dist/grapesjs-preset-webpage.min.css';
  9 | import 'grapesjs-preset-newsletter/dist/grapesjs-preset-newsletter.css';
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grapesjsbuilderbundle@1.0.0 build: `parcel build Assets/library/js/builder.js --out-dir Assets/library/js/dist --public-url ./`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grapesjsbuilderbundle@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     .npm/_logs/2021-09-19T15_30_13_467Z-debug.log
mautibot
banana-dance
thumbsup_all

Is grapesjs/dist/css/grapes.min.css supposed to exist? Im sorry if this is a newbie question as I have not worked with npm as much as others.

Any help would be appreciated.

Needed to run npm run build first i guess. Seem to have gotten past that. Now on to coding.