vue3+ts 引入 json-editor-vue3 报错

报错内容  SyntaxError: The requested module '/node_modules/jsoneditor/dist/jsoneditor.min.js?v=00499bcc' does not provide an export named 'default' (at json-editor.vue:2:8)

尝试解决、

1.

import 'jsoneditor'
import JsonEditorVue from 'json-editor-vue3'

2. 声明d.ts文件 文件内容

declare module 'json-editor-vue3'

你可能感兴趣的:(json,vue.js,javascript)