Using gojs react on meteor react project

Just created meteor 2.12 react project and have
“gojs”: “^2.2.12”,
“gojs-react”: “^1.1.1”,
installed. And having error messages by just using this import.
import * as go from “gojs”;

modules.js?hash=33cd5541a4b225d1a6c061eccc86c1ee94337eaa:749 Uncaught TypeError: Cannot set property version of # which has only a getter
at Ep.runGetters

How can I fix this problem?


import * as go from "gojs/release/go";

However this library is so massive that you would probably better get it via a CDN and add it to your project as a script added to the header on a Rect useEffect.


 if (!window.go && !requestedGo) {
    requestedGo = true
    const script = document.createElement('script')
    script.src = '' // or from your own CDN
    script.type = 'text/javascript'

@yskim If @paulishca reply resolves this, please close out as [SOLVED].

If no response by Jan 25, 2024, close out as [SOLVED].