Skip to content

vue-basic 更新blocksuite到 0.17.0及以上版本报错 #4

@jonsen

Description

@jonsen

修改package.json指定blocksuite为 0.17.0及以上版本,就会出现错误,导致无法正常运行。应该如何解决?

另外0.16.0正常,0.17.0,0.18.0,0.19.0均报错。

版本信息:
"dependencies": { "@blocksuite/blocks": "0.19.0", "@blocksuite/presets": "0.19.0", "@blocksuite/store": "0.19.0", "vue": "^3.4.27", "yjs": "^13.6.23" },

错误信息:

Uncaught TypeError: Failed to construct 'HTMLElement': Illegal constructor at new ReactiveElement (reactive-element.ts:999:5) at new LitElement (lit-element.ts:122:1) at new _ShadowlessElement (shadowless-element.ts:6:7) at new DerivedClass (with-disposable.ts:34:3) at new SignalWatcher2 (signal-watcher.ts:24:3) at new _a (editor-container.ts:23:59) at initEditor (editor.ts:20:18) at setup (EditorProvider.vue:18:21) at callWithErrorHandling (runtime-core.esm-bundler.js:199:19) at setupStatefulComponent (runtime-core.esm-bundler.js:7907:25)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions