Ant-design-pro: 使用npm start启动项目,出现原重错误!!!

Created on 20 Jun 2019  ·  8Comments  ·  Source: ant-design/ant-design-pro

先说下我的安排过程
1、yarn create umi myapp
2、cd myapp
3、cnpm install,成功安排了项目依赖
4、cnpm start, 出错如下

` ERROR Failed to compile with 1 errors 14:01:32
This dependency was not found:

To install it, you can run: npm install --save F:mywwwrootmyapp
[email protected]@umi-build-devlib indRoute.js

ERROR CODE ERR_WEBPACK_MODULE_NOT_FOUND`

F:mywwwrootmyapp 是我的项目路径,怎么合在一起了

Most helpful comment

同样问题,手动 npm i core-js --save

All 8 comments

同样的,我还是遇到这个问题了

更新一下umi 发了一个新的版本

我这里把项目重新删除了 在选择开发语言的时候卡死了?

PS D:\www\dtk_react_tuiguang_user> npm create umi
? Select the boilerplate type ant-design-pro
? Which language do you want to use? (Use arrow keys)

TypeScript
JavaScript

PS D:\www\dtk_react_tuiguang_user> umi -v
2.8.1

PS D:\www\dtk_react_tuiguang_user> node -v
v10.16.0

系统w10

好了吗

@sweetmei 无效果 我把PS D:\www\dtk_react_tuiguang_user> create-umi -v
0.13.7

同样问题,手动 npm i core-js --save

[email protected] 已解决,更新即可。

解决了,,在项目里npm install --save umi,把umi依赖包更新为最新版即可

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhuanglong picture zhuanglong  ·  3Comments

yadongxie150 picture yadongxie150  ·  3Comments

yaoleiroyal picture yaoleiroyal  ·  3Comments

happier2 picture happier2  ·  3Comments

Yoping picture Yoping  ·  3Comments