dream-num / univer

Univer is an Isomorphic Full-Stack Framework for Creating and Editing Spreadsheets, Docs, and Slides Across Web and Server
https://univer.ai
Apache License 2.0
7.07k stars 619 forks source link

[Bug] Cannot find "ConditionalFormattingService" registered by any injector. #3036

Closed mukiwu closed 2 months ago

mukiwu commented 2 months ago

Before you submit this issue, have you checked the following

Affected packages and versions

0.2.7

Reproduction link

DEMO: https://awesomeuniversheetsvitedemods4-12li--5173--60a75bde.local-credentialless.webcontainer.io/

Code: https://stackblitz.com/edit/awesome-univer-sheets-vite-demo-ds4pf8?file=src%2Fmain.ts

Expected behavior

hope it has no error

Actual behavior

I install https://univer.ai/zh-CN/guides/sheet/features/conditional-formatting, and it runs error in console

Error: [redi]: Cannot find "ConditionalFormattingService" registered by any injector. The stack of dependencies is: "SheetsCfRenderController -> ConditionalFormattingService".

System information

No response

Gggpound commented 2 months ago
image

Just do univer.registerPlugin(UniverSheetsConditionalFormattingUIPlugin)