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?

try

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.

e.g.

 if (!window.go && !requestedGo) {
    requestedGo = true
    const script = document.createElement('script')
    script.src = 'https://unpkg.com/gojs' // or from your own CDN
    script.type = 'text/javascript'
    document.body.appendChild(script)
  }

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

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