Thanks @nikku for your reply,
Due to holidays I didn’t have the chance to follow up on this.
So I took all of your advices and went ahead, please bear with me as I’m really a noob on npm…
Started with a new project to get the latest bpmn-js, install, build, run, move ‘dist’ over to my own application (in which I already extracted the process/xml into my own isa95 database as segment dependencies).
All good, baseline set.
went ahead with npm init
as you told me to.
Accepted all the defaults, all seems good.
with npm i --save bpmn-js bpmn-js-properties-panel
I’m fairly sure that you meant npm install --save bpmn-js bpmn-js-properties-panel
… The message about installing the peer dependency is gone!. Great!, however, there’s still a message:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
but since it’s telling me that it’s optional and not supported on the platform I’m on, for now I’m not too worried, so I continue.
You then indicate to ‘roll your own’ … perhaps a bit too farfetched for this noob
So I first decided to see if the ‘dist’ still works after instaling the extra packages, without changing anything I build, run and move ‘dist’ to my own application… everything works fine, however, I did not make any call to the properties panel yet.
Like I said, completely ‘roll-your-own’ is a bit too steep for me, so I decided to edit /lib/Viewer.js
and put this in to ‘register’ the properties-panel:
var propertiesPanelModule = require('bpmn-js-properties-panel'),
propertiesProviderModule = require('bpmn-js-properties-panel/lib/provider/bpmn');
I then build, run and move over the ‘dist’ folder in my application. When I then open it, I receive the message:
0x800a139e - JavaScript runtime error: Cannot find module 'events'
which occures on
throw f.code="MODULE_NOT_FOUND",f
Now, putting 1 and 1 together, I was unable to install the fsevents module and I receive a message about a module not being found called ‘events’ I might think this correlates.
@nikku, If I were to go your route, ‘roll-your-own’, where do I create the file and put in the code you supplied me with?
I’m a bit off-track here.
Many thanks!
edit: from what I read is that fsevents is only required on Mac (darwin). so the error I receive must be something different…