I have a Jira server app that makes use of webpack and atlassian-webresource-webpack-plugin (version 4.1.0) to run React code. I didn’t have any problems with Atlaskit components until I tried to use @atlaskit/editor-core (version 98.13.6). I have following error in browser console:
Uncaught ReferenceError: WRM is not defined at Function.requireEnsure [as e] (checklists-module-bundle.js:98) at loader (ToolbarLoader.js:8) at load (index.js:28) at init (index.js:121) at Function.preload (index.js:163) at Plugin.init (index.js:107) at Function.create (index.js:897) at ReactEditorView._this.createEditorState (ReactEditorView.js:96) at new ReactEditorView (ReactEditorView.js:160) at constructClassInstance (react-dom.development.js:11312)
The line where error occurs looks like this:
WRM.require('wrc!com.soldevelo.apps.checklists:' + chunkId)
chunkId is “vendors~@atlaskit-internal-editor-core-floating-toolbar”
Is it a problem with atlassian-webresource-webpack-plugin, @atlaskit/editor-core or am I doing something wrong?