toeverything/blocksuite

Uncaught TypeError: Illegal constructor (version: ^0.17.0)

Closed this issue · 2 comments

In version 0.17.0 and above, the "Uncaught TypeError: Illegal constructor" error occurs.

vue basic project created using vite

  • error case
image
  • dependencies
image

Call this before initializing editors:

import { effects as blocksEffects } from '@blocksuite/blocks/effects';
import { effects as presetsEffects } from '@blocksuite/presets/effects';

blocksEffects();
presetsEffects();

Call this before initializing editors:

import { effects as blocksEffects } from '@blocksuite/blocks/effects';
import { effects as presetsEffects } from '@blocksuite/presets/effects';

blocksEffects();
presetsEffects();

有用,解决了
is worked,thanks