I’m trying to run the connect-jql-editor-app and I’m getting an error while rendering the JQL editor: Uncaught TypeError: Class constructor st cannot be invoked without ‘new’.
I’ve tried running it using node 12.18.4 and 17.6 with no luck.
I managed to make it work. Turns out the problem was due that the jql-editor depends on prosemirror and some of the jql-editor dependencies also depend on prosemirror (but different versions of it).
Having multiple versions of prosemirror was causing the error.
Adding this to the package.json did the trick:
Thanks for your patience. The example connect repo and internal jql-editor dependencies have been updated to help mitigate this issue.
It’s still possible to run into this problem if your app bundles incompatible versions of prosemirror dependencies but npm install should now work out of the box when adding @atlassianlabs/jql-editor-forge or jql-editor-connect as a fresh dependency to your app.