Giter VIP home page Giter VIP logo

Comments (8)

dangviettuan avatar dangviettuan commented on September 16, 2024 6

I tried replace
import _Modeler from 'bpmn-js/lib/Modeler.js';
by
import * as _Modeler from "bpmn-js/dist/bpmn-modeler.production.min.js";
Build success and no crash on runtime.

from angular-bpmn.

cybergeene avatar cybergeene commented on September 16, 2024

Same issue, may I help with it, narve?

from angular-bpmn.

narve avatar narve commented on September 16, 2024

This is due to the Angular javascript-minification - the name of the variables are minified, e.g. "paletteProvider" becomes "e".

I really haven't spent much time researching this - I just skipped the "production" mode. The whole "production" mode and javascript minification (and Angular in general:D) is just plain stupid so I don't want to waste my limited brain power on these issues :)

from angular-bpmn.

narve avatar narve commented on September 16, 2024

Having said that, I've just migrated my main project to Angular 7 (the Github project was just an experiment to set things up), and everything worked rather smoothly. Possibly even the --prod mode. I'll check it out week after next when I'm back at work and comment here.

from angular-bpmn.

dangviettuan avatar dangviettuan commented on September 16, 2024

Hi guys. I tried production build but cannot see any error. How to reproduce?

from angular-bpmn.

narrowfail avatar narrowfail commented on September 16, 2024

Builds ok, crashes on runtime.

from angular-bpmn.

narve avatar narve commented on September 16, 2024

Surprisingly that works perfectly, nice catch, @dangviettuan !! I'll push a patch immediately.

from angular-bpmn.

narve avatar narve commented on September 16, 2024

Pushed, thanks again :)

from angular-bpmn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.