Problem building existing code with JointJS 4.2 (Angular 8) #3130
-
IntroductionI have an existing application that is working well with JointJS Plus 4.1 and my Angular 8 environment I am trying to update to JointJS 4.2 and have run into the following issue that is not present in the previous release. Note: I updated both @joint/core and @joint/plus to the current releases, and the issue seems to be in CORE: ERROR in ./node_modules/@joint/core/dist/joint.min.js 8:300209
I am disappointed that a point release has resulted in a breaking change? Can you provide any guidance. I've attached a small test app that I've been using for experimentation. My code compiles in v4.2, but I haven't been able to run it to verify if I made the correct changes for the Layers API (compared to what was in beta previously). Note: I have a version of this that contains all of the node modules (its about 80-MB zipped) if that helps. test-template Reduced - 4.2.2 Trial.zip Steps to reproduceNo response Restrictions & ConstraintsNo response Does your question relate to JointJS or JointJS+. Select both if applicable.JointJS |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hello! First of all, when using Regarding the current issue, when using '@joint/plus' the The issue itself is covered by |
Beta Was this translation helpful? Give feedback.
-
|
Thank you. I added the core library manually as I was trying to see if it made a difference (it didn't), but hadn't changed it back. I made the changes to For others in the same boat, I also had to increase the --max-old-space-size Node setting - some combination of the update and my code needed the extra memory allocated when debugging. |
Beta Was this translation helpful? Give feedback.
Hello!
First of all, when using
@joint/plusyou don't need to specify@joint/coreversion in yourpackage.json. Correct@joint/coreis installed via npm as usual. Every@joint/plusversion is expected to work with a particular@joint/corerelease so you can get unexpected errors in other case. So this part is redundant:Regarding the current issue, when using '@joint/plus' the
@joint/corelibrary is taken from the path according to itspackage.json:dist/joint.min.js. And in yourextra-webpack.config.jsyou are only transpiling.mjsfiles which omitsjoint.min.js. After fixing it by adding.jstranspiling it works as …