Debug blocksuite locally error
What happened?
Distribution version
macOS x64 (Intel)
What browsers are you seeing the problem on if you're using web version?
No response
Are you self-hosting?
- [X] Yes
Relevant log output
ERROR in ../core/src/components/blocksuite/block-suite-editor/specs/edgeless.ts 12:8-35
export 'EdgelessSurfaceRefBlockSpec' (imported as 'EdgelessSurfaceRefBlockSpec') was not found in '@blocksuite/blocks' (possible exports: AFFINE_AI_PANEL_WIDGET, AFFINE_EDGELESS_COPILOT_WIDGET, AFFINE_EMBED_CARD_TOOLBAR_WIDGET, AFFINE_FORMAT_BAR_WIDGET, AIDoneIcon, AIErrorType, AIItemList, AIStarIcon, AIStarIconWithAnimation, AIStopIcon, AddCursorIcon, AddTextIcon, AffineAIPanelWidget ...
ERROR in ../../../node_modules/@blocksuite/affine-block-surface/dist/surface-block.js 134:32-55
export 'GfxControllerIdentifier' (imported as 'GfxControllerIdentifier') was not found in '@blocksuite/block-std/gfx' (possible exports: GfxBlockElementModel, GfxCompatible, GfxGroupLikeElementModel, GfxLocalElementModel, GfxPrimitiveElementModel, GfxViewportElement, SurfaceBlockModel, Viewport, ZOOM_MAX, ZOOM_MIN, convert, convertProps, derive, field, generateKeyBetween, generateNKeysBetween, getDerivedProps, getFieldPropsSet, gfxContainerSymbol, initializeObservers, initializeWatchers, isGfxContainerElm, local, observe, updateDerivedProps, watch)
@ ../../../node_modules/@blocksuite/affine-block-surface/dist/index.js 20:0-59 20:0-59
@ ../core/src/blocksuite/presets/ai/entries/edgeless/actions-config.ts 4:0-71 274:41-60
@ ../core/src/blocksuite/presets/ai/index.ts 7:0-50 7:0-50
@ ../core/src/pages/workspace/detail-page/detail-page.tsx 8:0-64 82:27-66
@ ../core/src/router.tsx 167:18-69
@ ./src/app.tsx 15:0-45 113:44-50
@ ./src/index.tsx 16:0-28 55:40-43
ERROR in ../../../node_modules/@blocksuite/affine-block-surface/dist/surface-service.js 22:28-51
export 'GfxControllerIdentifier' (imported as 'GfxControllerIdentifier') was not found in '@blocksuite/block-std/gfx' (possible exports: GfxBlockElementModel, GfxCompatible, GfxGroupLikeElementModel, GfxLocalElementModel, GfxPrimitiveElementModel, GfxViewportElement, SurfaceBlockModel, Viewport, ZOOM_MAX, ZOOM_MIN, convert, convertProps, derive, field, generateKeyBetween, generateNKeysBetween, getDerivedProps, getFieldPropsSet, gfxContainerSymbol, initializeObservers, initializeWatchers, isGfxContainerElm, local, observe, updateDerivedProps, watch)
Anything else?
No response
Issue Status: 🆕 *Untriaged
*🆕 Untriaged
The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md
This is an automatic reply by the bot.
how to use Debug blocksuite locally?
请问在affine项目中如何调试blocksuite~~
最新的方法是
// blocksuite
yarn build:packages -w
// affine
yarn link <path-to-blocksutie> -A
请问在affine项目中如何调试blocksuite~~
最后怎么解决的呀
请问在affine项目中如何调试blocksuite~~
最后怎么解决的呀
没解决,你呢
要不加个vx交流一下吧
最新的方法是
// blocksuite yarn build:packages -w // affine yarn link <path-to-blocksutie> -A
➤ YN0071: │ Cannot link @blocksuite/blocks into @affine/core$wsroot$@workspace:packages/frontend/core dependency file-type@npm:19.5.0 conflicts with parent dependency file-type@npm:19.4.1