ant-design / antd-style

css-in-js library with antd v5 token system
https://ant-design.github.io/antd-style/
MIT License
189 stars 29 forks source link

🧐[问题] @ant-design/cssinjs 怎么移到 peerDependencies 里面去了? #37

Closed liuweiGL closed 1 year ago

liuweiGL commented 1 year ago

🧐 问题描述

vite 构建报错:

Failed to resolve import "@ant-design/cssinjs" from "..\..\node_modules\.pnpm\antd-style@3.0.0-beta.19_gvtcr5js3etfbgihn2dqh7o57u\node_modules\antd-style\es\index.js". Does the file exist?
13:45:18 [vite] Internal server error: Failed to resolve import "@ant-design/cssinjs" from "..\..\node_modules\.pnpm\antd-style@3.0.0-beta.19_gvtcr5js3etfbgihn2dqh7o57u\node_modules\antd-style\es\index.js". Does the file exist?

@ant-design/cssinjs 对用户来讲不应该是透明的吗?

💻 示例代码

🚑 其他信息

https://github.com/ant-design/antd-style/commit/5d0d10ca1c7f7d850259428d3f9b4a244bff3d87

arvinxx commented 1 year ago

其实准确来说应该是使用对应 antd 版本所对应的 cssinjs,收在 deps 也可以。我调整下

arvinxx commented 1 year ago

已修正