Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jul 16, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original issue 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

Fixes #222.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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