Example project to illustrate the problem in this forum.bpmn.io thread.
Prepare the project by installing all dependencies:
npm install
Then build the project like this:
# build the project
npm run build
And host the contents of the public
folder with any web server.