These dependencies were not found: * diagram-js/lib/features/create in ./src/plugin/palette/index.js * diagram-js/lib/features/global-connect in ./src/plugin/palette/index.js * diagram-js/lib/features/hand-tool in ./src/plugin/palette/index.js * diagram-js/lib/features/interaction-events in ./node_modules/diagram-js-direct-editing/index.js * diagram-js/lib/features/lasso-tool in ./src/plugin/palette/index.js * diagram-js/lib/features/palette in ./src/plugin/palette/index.js * diagram-js/lib/features/space-tool in ./src/plugin/palette/index.js * diagram-js/lib/i18n/translate in ./src/plugin/palette/index.js
时间: 2023-06-28 16:06:43 浏览: 151
这个问题看起来是你的代码中缺少了一些依赖包。可以使用你的包管理器(比如npm或yarn)来安装这些依赖包。
对于这个错误,你需要安装DiagramJS的依赖包。可以使用以下命令进行安装:
```
npm install --save diagram-js@0.27.5
```
或者
```
yarn add diagram-js@0.27.5
```
这应该会解决你遇到的问题。如果还有其他问题,请告诉我。
相关问题
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!
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,从而解决这个问题。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_lunwen.png)
![-](https://csdnimg.cn/download_wenku/file_type_lunwen.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)