Closed mrs01dev closed 3 years ago
It looks like your package installation failed. Try to delete lock and reinstall?
package.json have no declaration for rc-uti. "dependencies": { "@ant-design/icons": "^4.0.0", "@ant-design/pro-descriptions": "^1.2.0", "@ant-design/pro-form": "^1.3.0", "@ant-design/pro-layout": "^6.9.0", "@ant-design/pro-table": "^2.17.0", "@umijs/route-utils": "^1.0.33", "antd": "^4.15.0", "classnames": "^2.2.6", "lodash": "^4.17.11", "moment": "^2.25.3", "omit.js": "^2.0.2", "react": "^16.14.0", "react-dev-inspector": "^1.1.1", "react-dom": "^17.0.0", "react-helmet-async": "^1.0.4", "umi": "^3.4.1", "umi-request": "^1.0.8" }, package.json should include declaration for rc-uti , as: "dependencies": { "@ant-design/icons": "^4.0.0", "@ant-design/pro-descriptions": "^1.2.0", "@ant-design/pro-form": "^1.3.0", "@ant-design/pro-layout": "^6.9.0", "@ant-design/pro-table": "^2.17.0", "@umijs/route-utils": "^1.0.33", "antd": "^4.15.0", "classnames": "^2.2.6", "lodash": "^4.17.11", "moment": "^2.25.3", "omit.js": "^2.0.2", "rc-util": "^5.12.2", "react": "^16.14.0", "react-dev-inspector": "^1.1.1", "react-dom": "^17.0.0", "react-helmet-async": "^1.0.4", "umi": "^3.4.1", "umi-request": "^1.0.8" },
please add rc-util dependency to package.json
issue From windows 10 powerShell , using pnpm: PS B:\ant-design-pro> pnpm dev
Bundle with webpack 5... Starting the development server...
× Webpack Compiled with some errors in 1.06m
ERROR Failed to compile with 1 errors 1:43:28 PM
This dependency was not found:
To install it, you can run: npm install --save rc-util/es/hooks/useMergedState