Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在UMI@2版本中使用报错 #1

Open
zjtnumber2 opened this issue Jul 4, 2019 · 6 comments
Open

在UMI@2版本中使用报错 #1

zjtnumber2 opened this issue Jul 4, 2019 · 6 comments

Comments

@zjtnumber2
Copy link

Error: Cannot find module 'css-loader-1'

@zjtnumber2
Copy link
Author

image

@zjtnumber2
Copy link
Author

需要新增css-loader-1模块

@fengxinming
Copy link
Owner

@zjtnumber2 你使用yarn还是cnpm安装umi,umi内置了af-webpack,它的依赖模块里面有css-loader-1,你具体使用了哪个版本?

@fengxinming
Copy link
Owner

@zjtnumber2 建议你把npm或者cnpm都升级到6.0以上版本,或者安装tyarn,使用方法跟yarn一样,这个是阿里弄的一个国内镜像

@rachelichen
Copy link

我也遇到同样的问题,我用的umi3

@fengxinming
Copy link
Owner

fengxinming commented Dec 5, 2020

@rachelichen 添加插件【umi-plugin-stylus】用于在umi3使用stylus

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

No branches or pull requests

3 participants