Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Illegal constructor (version: ^0.17.0) #8448

Closed
ghost opened this issue Sep 25, 2024 · 2 comments
Closed

Uncaught TypeError: Illegal constructor (version: ^0.17.0) #8448

ghost opened this issue Sep 25, 2024 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 25, 2024

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
@doodlewind
Copy link
Member

Call this before initializing editors:

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

blocksEffects();
presetsEffects();

@ghost
Copy link
Author

ghost commented Sep 26, 2024

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant