bpmn-io / bpmn-moddle

Read and write BPMN 2.0 XML from JavaScript.
MIT License
444 stars 162 forks source link

Inline bpmn in color #88

Closed nikku closed 3 years ago

nikku commented 3 years ago

Inlining was not properly configured.

Rollup did log a warning, however that warning is easy to miss.

barmac commented 3 years ago

Thanks Nico :)

michaelarnauts commented 3 years ago

Can 7.1.1 be pushed to npm? Currently npm install bpmnlint doesn't work, I assume due to this error.

internal/modules/cjs/loader.js:818
  throw err;
  ^
Error: Cannot find module 'bpmn-in-color-moddle/resources/bpmn-in-color.json'
Require stack:
- /usr/lib/node_modules/bpmnlint/node_modules/bpmn-moddle/dist/index.js
- /usr/lib/node_modules/bpmnlint/bin/bpmnlint.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/lib/node_modules/bpmnlint/node_modules/bpmn-moddle/dist/index.js:6:26)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/lib/node_modules/bpmnlint/node_modules/bpmn-moddle/dist/index.js',
    '/usr/lib/node_modules/bpmnlint/bin/bpmnlint.js'
  ]
}
nikku commented 3 years ago

Give npm some time. It is likely a caching issue. It works on my end:

> npm info bpmn-moddle      

bpmn-moddle@7.1.1 | MIT | deps: 3 | versions: 75
A moddle wrapper for BPMN 2.0              
https://github.com/bpmn-io/bpmn-moddle#readme 
michaelarnauts commented 3 years ago

@nikku correct, it works when I install it, just https://www.npmjs.com/package/bpmn-moddle is still displaying an old version.

thanks for the quick fix :)