找不到模块“@editorjs/image”的声明文件。‘'node_modules/@editorjs/image/dist/bundle.js’隐式地具有“任意”类型。如果存在npm i --save-dev @types/editorjs__image,可以尝试使用它,或者添加一个新的声明(.d.ts)文件,其中包含declare module '@editorjs类型记录包不可用,而且当我在项目.d.ts中创建declare modul
我正在试验Typescript,并尝试在TypeScript中使用EditorJS。到目前为止,我使用npm i @editorjs/editorjs为我的项目下载并安装了EditorJS。然后,我尝试使用下面的代码行在我的项目中使用EditorJS: import EditorJS from '@editorjs/editorjs'; 但是,构建失败,并显示以下消息: Cannot find@edito
/node_modules/@editorjs/nested-list/
README.md example/ package.json styles/ 然后,如果我尝试构建它,就会说/node_modules/@editorjs/nested-list/dist/nested-list.js'.Please verify that the package.json has a valid "main"
我按照教程在react中集成了editorjs,并创建了一个定制的editorjs插件。本教程可以很好地创建自定义块,但我希望在editorjs中将自定义块作为一个editorjs。这是Editor.jsx文件的代码,用于创建editorjs文本编辑器:importEditorJS from "@editorjs