Hi,
I am trying to use @atlaskit/editor-core package in Custom UI app. There seem to be complex dependency issue.
- Created new Forge app with custom UI
- Used the simplest editor example from docs
import { Editor } from '@atlaskit/editor-core';
<Editor appearance="comment" />;
which gives following errors:
Failed to compile.
Should not import the named export 'version' (imported as 'listenerVersion') from default-exporting module (only default export is available soon)
WARNING in ./node_modules/@atlaskit/analytics-next-stable-react-context/dist/esm/context.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/path/to/static/app/node_modules/@atlaskit/analytics-next-stable-react-context/src/context.ts' file: Error: ENOENT: no such file or directory, open '/path/to/static/app/node_modules/@atlaskit/analytics-next-stable-react-context/src/context.ts'
WARNING in ./node_modules/@atlaskit/analytics-next-stable-react-context/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/path/to/static/app/node_modules/@atlaskit/analytics-next-stable-react-context/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/nchhantyal/workspace/issue-template/static/admin/node_modules/@atlaskit/analytics-next-stable-react-context/src/index.ts'
ERROR in ./node_modules/@atlaskit/analytics-listeners/dist/esm/atlas/process-event.js 91:21-36
Should not import the named export 'version' (imported as 'listenerVersion') from default-exporting module (only default export is available soon)
ERROR in ./node_modules/@atlaskit/analytics-listeners/dist/esm/atlaskit/process-event.js 85:21-36
Should not import the named export 'version' (imported as 'listenerVersion') from default-exporting module (only default export is available soon)
ERROR in ./node_modules/@atlaskit/analytics-listeners/dist/esm/media/process-event.js 79:23-38
Should not import the named export 'version' (imported as 'listenerVersion') from default-exporting module (only default export is available soon)
ERROR in ./node_modules/@atlaskit/analytics-listeners/dist/esm/navigation/process-event.js 91:21-36
Should not import the named export 'version' (imported as 'listenerVersion') from default-exporting module (only default export is available soon)
ERROR in ./node_modules/@atlaskit/analytics-listeners/dist/esm/notifications/process-event.js 91:21-36
Should not import the named export 'version' (imported as 'listenerVersion') from default-exporting module (only default export is available soon)
ERROR in ./node_modules/@atlaskit/analytics-listeners/dist/esm/peopleTeams/process-event.js 91:21-36
Should not import the named export 'version' (imported as 'listenerVersion') from default-exporting module (only default export is available soon)
Is there any workaround to this issue?