These dependencies were not found: * core-js/fn/promise in ./src/util/formHtml.js * file-saver in ./src/util/formHtml.js To install them, you can run: npm install --save core-js/fn/promise file-saver These relative modules were not found: * ../../../service/api in ./src/util/element/child.js, ./src/util/vant/child.js * ../../router/router in ./src/util/formHtml.js * ../../service/common in ./src/util/data.js * ../../service/storage in ./src/util/data.js * ../form/control/index in ./src/util/formHtml.js 给我中文解析
时间: 2023-08-02 12:08:33 浏览: 84
这些依赖项未找到:
* 在./src/util/formHtml.js中的core-js/fn/promise
* 在./src/util/formHtml.js中的file-saver
要安装它们,可以运行:npm install --save core-js/fn/promise file-saver
这些相对模块未找到:
* 在./src/util/element/child.js、./src/util/vant/child.js中的../../../service/api
* 在./src/util/formHtml.js中的../../router/router
* 在./src/util/data.js中的../../service/common
* 在./src/util/data.js中的../../service/storage
* 在./src/util/formHtml.js中的../form/control/index
相关问题
These dependencies were not found: * core-js/modules/es6.array.find
这个错误提示表明你的项目缺少了 `core-js` 模块中 `es6.array.find` 的依赖。这通常是因为你的代码中使用了 `Array.prototype.find()` 这个 ES6 新增的方法,但是在当前的环境下并不支持该方法。
你可以通过安装 `core-js` 模块来解决这个问题,具体操作如下:
1. 在项目根目录下执行以下命令安装 `core-js` 模块:
```
npm install --save core-js@2
```
2. 在入口文件(例如 `main.js` 或 `index.js`)中引入 `core-js`:
```javascript
import 'core-js/modules/es6.array.find';
```
或者你也可以在 `babel.config.js` 中配置:
```javascript
module.exports = {
presets: [
['@babel/preset-env', {
useBuiltIns: 'usage',
corejs: 2
}]
]
};
```
这样,在编译过程中会自动引入 `core-js` 中所有缺失的 polyfill,从而解决这个问题。
These dependencies were not found: * element-plus/lib/theme-chalk/display.css in ./src/main.js
This error message indicates that the dependency "element-plus/lib/theme-chalk/display.css" could not be found in the specified path "./src/main.js".
To resolve this issue, you can try the following steps:
1. Check if you have installed the "element-plus" library correctly. You can use a package manager like npm or yarn to install it. For example, you can run the following command in your project directory:
```
npm install element-plus
```
or
```
yarn add element-plus
```
2. Check if the import statement for "element-plus/lib/theme-chalk/display.css" is correct in your "./src/main.js" file. Make sure the path is accurate and matches the actual location of the file.
3. Verify if the "element-plus/lib/theme-chalk/display.css" file exists in your project. If it is missing, you may need to reinstall or update the "element-plus" library.
4. If you have updated the "element-plus" library recently, try restarting your development server to ensure all changes are applied.
If you have further questions or need additional assistance, feel free to ask!