兼容@import '~es/style/index.less'; 引入less 文件 #12040
Replies: 3 comments 2 replies
-
确认下你的依赖里是否有这个文件,尝试升级下 umi 版本到最新,如还有问题,需要给一个最小复现。 我使用 arco design 是没问题的,在 // src/global.ts
import "@arco-design/web-react/dist/css/arco.css";
// or
// import "@arco-design/web-react/dist/css/index.less"; 或者在全局样式文件 // src/global.less
@import '@arco-design/web-react/dist/css/index.less'; 或者导入: // src/global.less
@import '~@arco-design/web-react/es/style/theme/default.less';
// or @import '@arco-design/web-react/es/style/theme/default.less'; 都是正常的。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
umi 3 不维护了,建议升级到 umi 4 。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
编译时报错
Beta Was this translation helpful? Give feedback.
All reactions