Bpmn-js guideline validation

I’m trying to integrate bpmn-js-guideline-validator project to bpmn-js project, while trying to execute grunt build command, I’m getting an error which is pasted below-

Running “browserify:app” (browserify) task

import GuidelineValidator from ‘./core/GuidelineValidator’;
ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’
Warning: Error running grunt-browserify. Use --force to continue.


Without knowing your project setup, it’s hard to see what’s going on.

Note that you want to use an es6 module, so your bundler would have to deal with it (and what the error message seems like to describe)