Javascript 未处理的拒绝(错误):ID为«的元素;editorjs&xBB;他失踪了。通过正确的支架';身份证

Javascript 未处理的拒绝(错误):ID为«的元素;editorjs&xBB;他失踪了。通过正确的支架';身份证,javascript,reactjs,editorjs,Javascript,Reactjs,Editorjs,我正在开发一个react应用程序,它使用Editor.js作为编辑器,该页面运行良好。但当我试图访问其他页面时,它会给出未经处理的拒绝。这是令人困惑的,因为我只将editorjs包导入编辑器页面,但它要求使用id为“element js”的元素 这是一个编辑器文件 const editor = new EditorJS({ holder: 'editorjs', autofocus: true, tools: { paragraph: { class: Paragraph,

我正在开发一个react应用程序,它使用Editor.js作为编辑器,该页面运行良好。但当我试图访问其他页面时,它会给出未经处理的拒绝。这是令人困惑的,因为我只将editorjs包导入编辑器页面,但它要求使用id为“element js”的元素

这是一个编辑器文件

const editor = new EditorJS({
holder: 'editorjs',
autofocus: true,
tools: {
  paragraph: {
    class: Paragraph,
    inlineToolbar: true,
    config: {
      placeholder: 'Write Here....'
    },
  },
  table: {
    class: Table,
    inlineToolbar: true,
    config: {
      rows: 2,
      cols: 3,
    },
  },
  header: {
    class: Header,
    /**
     * This property will override the common settings
     * That means that this tool will have only Marker and Link inline tools
     * If 'true', the common settings will be used.
     * If 'false' or omitted, the Inline Toolbar wont be shown
     */
    inlineToolbar: true,
    config: {
      placeholder: 'Header'
    },
    shortcut: 'CMD+SHIFT+H'
  },

  delimiter: Delimiter,
  warning: Warning,
  list: {
    class: List,
    inlineToolbar: [
      'link',
      'bold'
    ]
  },
  quote: Quote,
  checklist: {
   class: Checklist,
   inlineToolbar: true,
  },
  Marker: {
    class: Marker,
    shortcut: 'CMD+SHIFT+M',
  },
  embed: {
    class: Embed,
    inlineToolbar: false,
    config: {
     services: {
       youtube: true,
       coub: true
     },
    },
  },
  image: ImageTool,  
}
}))

以及我如何导入:

import EditorJS from '@editorjs/editorjs';
import Header from '@editorjs/header';
import List from '@editorjs/list';
import Checklist from '@editorjs/checklist';
import Embed from '@editorjs/embed';
import Marker from '@editorjs/marker';
import Warning from '@editorjs/warning';
import Quote from '@editorjs/quote';
import Delimiter from '@editorjs/delimiter';
import ImageTool from '@editorjs/image';
import Table from "@editorjs/table";
import Paragraph from "@editorjs/paragraph";
我不知道这里有什么问题。在我看来,这些导入正在全球范围内导入到整个应用程序中