Comments (1)
值得注意是的百分之二十的问题都可以用重装依赖来解决,所以你可以尝试一下:
删除 'node_modules' 文件夹 -> 删除 'package-lock.json'或 'pnpm-lock.yaml' 文件 -> 运行 'pnpm install' 或 'npm install' 命令
首先,根据报错信息,问题出现在../backend/src/shared/protocols/serviceProto.ts
文件中的第21行,报错信息提示文件被以下loader处理:
./node_modules/umi/node_modules/@umijs/preset-built-in/bundled/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
并且可能需要额外的loader来处理这些loader处理结果。
解决方案:
-
第一步,检查
../backend/src/shared/protocols/serviceProto.ts
文件的第21行,确保语法正确。 -
如果语法正确,由于报错信息中提到了umi和react-refresh-webpack-plugin,可以考虑以下方案:
-
清理缓存并重新安装依赖,可以使用以下命令:
npm cache clean --force rm -rf node_modules npm install
-
确保使用的是最新版本的node.js,可以尝试升级node版本。
-
如果报错依然存在,可以尝试升级umi和antd的版本,使用以下命令:
npm update umi antd
-
如果以上方法都无效,可以考虑按需引入所需的loader。根据报错信息中提到的loader路径
./node_modules/umi/node_modules/@umijs/preset-built-in/bundled/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
,查看是否存在该loader的配置文件,并在webpack配置文件中添加相应的loader。
-
-
如果以上方法均未解决问题,可以尝试检查相关依赖库的文档或在相关社区论坛上提问,以寻求更多的帮助。
注意:在进行任何操作之前,请确保你已经备份了项目代码,并且明白每个操作的风险和影响。
from ant-design-pro.
Related Issues (20)
- 👑 [需求 | Feature] LoginFormPage组件视频url
- 🐛 [BUG]npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 HOT 1
- 🧐[问题 | question]项目部署的时候提示commander依赖的node版本必须大于18,为什么低版本的也会收到这个影响 HOT 5
- 🧐[问题 | question]ant design pro 如何对接钉钉扫码登录? HOT 1
- 🧐[问题 | question]为什么左侧菜单没有显示可点击的标签,怎么设置? HOT 1
- 🐛 [BUG] request 请求负载消失 HOT 2
- 为什么我clone下来 跟preview的差别这么大 少了这么多菜单 HOT 7
- 🐛 [BUG]Menu的tooltip在鼠标移走之后不会消失
- 🧐[问题 | question] 关于:推荐任何时候都是用 type
- 🐛 [BUG]在最新版的pro中,将app.tsx里的SelectLang注释掉,却依然在side布局里出现SelectLang
- 🧐[问题 | question]ant-design-pro项目,使用access: 'routefilter', 退出登录显示403页面闪一下 然后再回到登录页面
- 🧐[问题 | question]antd pro 4.0.0 在哪里添加qiankun lifecycle函数呢?
- 🐛 [BUG]安装bug和文档bug
- 🧐[问题 DrawerForm下 ProFormText initialValue 显示上次的数据 HOT 1
- 🐛 [BUG] pr6选择complete, npm install 安装失败 HOT 8
- 亮色跟暗黑主题色切换,暗色默模式怎么修改背景颜色
- 🐛 [使用 EditableProTable可编辑列表使用ProFormUploadButton 进行文件图片上传图片上传到后台但是在列表中没有展示] HOT 1
- 🐛 [BUG] cli 搭建项目运行报路由错误 HOT 1
- 🧐[问题 | question]:createStyles在WebStorm中报红线
- 🧐[问题 | question] 左侧菜单不高亮怎么解决?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ant-design-pro.