Skip to content
Discussion options

You must be logged in to vote

Hello,

I have been using BlockSuite v0.12 and defined several custom embed blocks, which worked fine. However, after upgrading to BlockSuite v0.17.28, I am encountering a TypeScript type error, even though I followed the same approach as outlined in the BlockSuite documentation: Defining New Blocks.

Here's an example of what I’m trying to do:

import { BlockModel } from '@blocksuite/store';
import { CitationData } from './citation-item';
import { TemplateResult, html, nothing } from 'lit';
import { literal } from 'lit/static-html.js';
import { BlockService } from '@blocksuite/block-std';
import { EmbedBlockComponent, EmbedBlockModel } from '@blocksuite/blocks';

type EmbedCitationModel = E…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BitzForge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants