我尝试使用节点依赖性@atlaskit/editor-core@^87.6.7
,但是它的依赖性@atlaskit/adf-utils
存在问题。我试图显式添加@atlaskit/adf-utils
作为依赖项,但这没有帮助。我可以在我的node_modules中看到adf-utils。我在做什么错了?
ERROR in /home/user/GIT/advanced-team-dashboard-cloud/node_modules/@atlaskit/editor-core/dist/es2015/utils/document.js
Module not found: Error: Can't resolve '@atlaskit/adf-utils' in '/home/user/GIT/advanced-team-dashboard-cloud/node_modules/@atlaskit/editor-core/dist/es2015/utils'
@ /home/user/GIT/advanced-team-dashboard-cloud/node_modules/@atlaskit/editor-core/dist/es2015/utils/document.js 2:0-49 136:23-32
@ /home/user/GIT/advanced-team-dashboard-cloud/node_modules/@atlaskit/editor-core/dist/es2015/utils/index.js
@ /home/user/GIT/advanced-team-dashboard-cloud/node_modules/@atlaskit/editor-core/dist/es2015/index.js
@ ./component/quick-fix.js
我使用节点v8.9.4。
我如何使用它:
import { Editor } from '@atlaskit/editor-core';
import { WikiMarkupTransformer } from '@atlaskit/editor-wikimarkup-transformer';
...
<Editor
appearance='comment'
contentTransformerProvider={schema =>
new WikiMarkupTransformer(schema)
}
defaultValue={props.description}
onChange={props.onChange}
/>
...