These dependencies were not found: * throttle-debounce/debounce in ./node_modules/element-ui/lib/tooltip.js * throttle-debounce/throttle in ./node_modules/element-ui/lib/element-ui.common.js

Error when Vue item in vscode starts:

These dependencies were not found:

* throttle-debounce/debounce in ./ node_ modules/element-ui/lib/tooltip. js
* throttle-debounce/throttle in ./ node_ modules/element-ui/lib/element-ui. common. js

To install them, you can run: npm install –save throttle-debounce/debounce throttle-debounce/throttle

According to the prompts, there is still an error after installation. After changing the path, it can run normally. It seems that there is a difference in the resource introduction path between the idea editor and the vscode editor.

Follow the prompts in the error report to find the relevant file tooltip JS and common JS, where the path is:

 

Change the path to:

module. exports = require(“element-ui/node_modules/throttle-debounce”);

Find all the places that need to be changed, and then run the project after modification.

Similar Posts: