ant-design / ant-design/cssinjs

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

Open
#222 1 comment 1 reaction 1 assignee Assigned to @Copilot View on GitHub
Dominant language
TypeScript
Stars
287
Forks
80
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.