Open Tupiet opened 6 months ago
If this helps, I've just discovered that warnings are shown, only errors aren't.
Thanks for opening this bug. I can reproduce it with your setup and transferred this issue to bpmn-io/bpmn-js-bpmnlint
.
Notice however that if you run npm start
in this repo, both error and warning tooltips display correctly. So it might be something about the user's setup.
@barmac I was about to comment exactly that. We'd still need to investigate what is up, as this affects a simple modification of the existing modeler example.
Firstly, thank you for taking the time to review this. Strangely enough, in my case, doing npm start
gives me the same result as npm run dev
: error tooltips don't display correctly, while warnings do.
What browser do you use?
Tried both Safari and Chrome, same result.
Describe the Bug
TL;DR: While the modeler is showing that there are some errors in a BPMN, it doesn't show the text of the errors when hovering.
I'm using the modeler layout from bpmn-js-examples, which allows me to see and create BPMN files. Then, I've added bpmn-js-bpmnlint, because I need to see the errors that are in the diagram. I've followed the steps from the bpmn-js-bpmnlint, and the result is that, while it shows the correct number of errors, when I hover the error, the message is empty.
Steps to Reproduce
I've created a repro, if this helps: bpmn-editor.
In the repro, I've commented with an asterisk (*) the lines in
src/app.js
andwebpack.config.js
I've added that were not in the modeler base, the lines I've added to add bpmnlint.With the repro, the steps are the following ones:
git clone https://github.com/Tupiet/bpmn-editor.git
cd bpmn-editor
npm install
npm run dev
Expected Behavior
I would expect to see the text of the errors.
Environment
Finally, thanks for this amazing library! Feel free to ask me for more details if you need it.