Skip to content

Attempted import error: 'StyleContext' is not exported from '@ant-design/cssinjs' (imported as 'CssInJsStyleContext') #222

@ezzDeghedy

Description

@ezzDeghedy

hi when the project builds on github i get this error
Done in 70.19s.
yarn run v1.22.22
$ react-scripts build
Creating an optimized production build...
Failed to compile.

Attempted import error: 'StyleContext' is not exported from '@ant-design/cssinjs' (imported as 'CssInJsStyleContext').

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
i use the following versions
"@ant-design/icons": "^6.0.0",
"@ant-design/plots": "^2.3.3",
"@antv/util": "^3.3.10",
"antd": "^5.24.7",
and this install @ant-design/cssinjs version 1.23.0 automatically and in both es/index and lib/index there is this StyleContext
so what is the issue

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions