Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Can not change model properties #6

Closed
qntbkk opened this issue Jan 21, 2020 · 2 comments
Closed

Issue Can not change model properties #6

qntbkk opened this issue Jan 21, 2020 · 2 comments

Comments

@qntbkk
Copy link

qntbkk commented Jan 21, 2020

I build this example to Mendix Platform, it can start initial Root Node, however, when i try to press initial button, it got error like below. Moreover, the create node also has a same problem

My source Code: https://github.com/qntbkk/MendixGoJSTS.git

action DIAGRAM/INIT @ 16:00:59.153
2mxui.js?637152192275961749:73 Error: applyIncrementalJson cannot change Model properties
at B (go.js:12)
at ar.../../../gojs/release/go.js.t.Cq (go.js:1803)
at ar.../../../gojs/release/go.js.t.yx (go.js:1736)
at GojsDiagram.../../../react-gojs/dist/GojsDiagram.js.GojsDiagram.applyUpdatesFromModel (GojsDiagram.js:149)
at GojsDiagram.../../../react-gojs/dist/GojsDiagram.js.GojsDiagram.componentDidUpdate (GojsDiagram.js:67)
at za (mxui.js?637152192275961749:55)
at Ha (mxui.js?637152192275961749:55)
at mxui.js?637152192275961749:55
at Object.t.unstable_runWithPriority (mxui.js?637152192275961749:73)
at Ps (mxui.js?637152192275961749:55)
(anonymous) @ mxui.js?637152192275961749:73
mxui.js?637152192275961749:55 Uncaught Error: applyIncrementalJson cannot change Model properties
at B (go.js:12)
at ar.../../../gojs/release/go.js.t.Cq (go.js:1803)
at ar.../../../gojs/release/go.js.t.yx (go.js:1736)
at GojsDiagram.../../../react-gojs/dist/GojsDiagram.js.GojsDiagram.applyUpdatesFromModel (GojsDiagram.js:149)
at GojsDiagram.../../../react-gojs/dist/GojsDiagram.js.GojsDiagram.componentDidUpdate (GojsDiagram.js:67)
at za (mxui.js?637152192275961749:55)
at Ha (mxui.js?637152192275961749:55)
at mxui.js?637152192275961749:55
at Object.t.unstable_runWithPriority (mxui.js?637152192275961749:73)
at Ps (mxui.js?637152192275961749:55)

@nicolaserny
Copy link
Owner

I will try to look at your code as soon as possible.
However, I advise you to check out this example (https://github.com/nicolaserny/gojs-react-example) with the new official library from Northwoods.

@qntbkk
Copy link
Author

qntbkk commented Jan 28, 2020

ok i solve this, this is about the lib, gojs-react and gojs are useful, these others will make code messy

@qntbkk qntbkk closed this as completed Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants