node.js - BPMN.IO examples not working in localhost -
i want run bpmn in localhost. after browsing whole day, tried steps
- install nodejs
- npm install bpmn-js // in cmd
after don't know want do.
also tried
- downloading bpmn example files
- saved in local path , opened "localhost/bpmn-js-examples-master/properties-panel/app" in chrome.
and getting error in console => "uncaught referenceerror: require not defined"
to solve have include require.js file index.html ( inside "localhost/bpmn-js-examples-master/properties-panel/app" )
but getting new console error => "uncaught error: module name "fs" has not been loaded yet context: _. use require([])"
please, me this.
from github:
make sure use browserify or bundle project , bpmn-js browser.
there sample project provided node environment. can use sample , build around it. important part you're missing grunt script browserifying code (this process prevents require not defined
error).
Comments
Post a Comment