Skip to content

运行项目时出现'.css.ts'编译不通过 #9154

@xiaogonggong-w

Description

@xiaogonggong-w

blocksuite版本
0.22.4

环境:
vite:6.0.3

出现的问题:
Uncaught Error: Styles were unable to be assigned to a file. This is generally caused by one of the following:

  • You may have created styles outside of a '.css.ts' context
  • You may have incorrect configuration. See https://vanilla-extract.style/documentation/getting-started
    at getFileScope (vanilla-extract-css-fileScope.browser.esm.js:27:11)
    at generateIdentifier (vanilla-extract-css.browser.esm.js:143:7)
    at style (vanilla-extract-css.browser.esm.js:403:19)
    at note-edgeless-block.css.ts:7:38

复现代码:
https://github.com/xiaogonggong-w/blocksuite-css.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions