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

[Bug] 最新版4.0.36安装启动报错 #10053

Closed
WuJiY opened this issue Dec 14, 2022 · 5 comments
Closed

[Bug] 最新版4.0.36安装启动报错 #10053

WuJiY opened this issue Dec 14, 2022 · 5 comments

Comments

@WuJiY
Copy link

WuJiY commented Dec 14, 2022

umi max 版本4.0.36
安装报错

> max setup

fatal - TypeError: Cannot read properties of undefined (reading 'mock')
    at Hook.fn (C:\Users\Yin\Desktop\wwwroot\repos\gemini\backend\node_modules\.pnpm\@umijs+request-record@1.1.2\node_modules\@umijs\request-record\dist\cjs\index.js:93:41)
    at C:\Users\Yin\Desktop\wwwroot\repos\gemini\backend\node_modules\.pnpm\@umijs+core@4.0.36\node_modules\@umijs\core\dist\service\service.js:114:36
    at _next5 (eval at create (C:\Users\Yin\Desktop\wwwroot\repos\gemini\backend\node_modules\.pnpm\@umijs+bundler-utils@4.0.36\node_modules\@umijs\bundler-utils\compiled\tapable\index.js:1:8410), <anonymous>:17:17)
    at eval (eval at create (C:\Users\Yin\Desktop\wwwroot\repos\gemini\backend\node_modules\.pnpm\@umijs+bundler-utils@4.0.36\node_modules\@umijs\bundler-utils\compiled\tapable\index.js:1:8410), <anonymous>:42:1)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
fatal - A complete log of this run can be found in:
fatal - C:\Users\Yin\Desktop\wwwroot\repos\gemini\backend\node_modules\.cache\logger\umi.log
fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues
 ELIFECYCLE  Command failed with exit code 1.

@WuJiY WuJiY changed the title 最新版安装启动报错[Bug] say something [Bug] 最新版4.0.36安装启动报错 Dec 14, 2022
@fz6m
Copy link
Member

fz6m commented Dec 14, 2022

给一个最小复现看看。

@cqlmq
Copy link

cqlmq commented Dec 14, 2022

我的一样,退回4.0.30了

@cqlmq
Copy link

cqlmq commented Dec 14, 2022

antd pro v6 beta1

fatal - TypeError: Cannot read properties of undefined (reading 'mock')
at Hook.fn (/Users/limengqiu/huixun/v4.1/node_modules/@umijs/request-record/dist/cjs/index.js:93:41)
at /Users/limengqiu/huixun/v4.1/node_modules/@umijs/core/dist/service/service.js:114:36
at _next6 (eval at create (/Users/limengqiu/huixun/v4.1/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:8410), :17:17)
at eval (eval at create (/Users/limengqiu/huixun/v4.1/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:8410), :42:1)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
fatal - A complete log of this run can be found in:
fatal - /Users/limengqiu/huixun/v4.1/node_modules/.cache/logger/umi.log
fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

@fz6m
Copy link
Member

fz6m commented Dec 14, 2022

哪里搞的 antd pro v6 beta 版,我用 pro 脚手架初始化了一个 v6 正式版是没问题的。

@WuJiY
Copy link
Author

WuJiY commented Dec 15, 2022

问题找到了,要在配置文件 config里 配置 requestRecord:{} 这个是新增的配置项

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