[Vue FAQ notes] dependency was not found: _css-loader

Problem Description

This dependency was not found:

* -!../../../node_modules/[email protected]@css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/[email protected]@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/[email protected]@postcss-loader/src/index.js??ref--6-oneOf-1-2!./css/userinfo.css in ./node_modules/[email protected]@css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/[email protected]@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/[email protected]@postcss-loader/src??ref--6-oneOf-1-2!./node_modules/[email protected]@cache-loader/dist/cjs.js??ref--0-0!./node_modules/[email protected]@vue-loader/lib??vue-loader-options!./src/components/set/set-information.vue?vue&type=style&index=0&lang=css&

To install it, you can run: npm install --save -!../../../node_modules/[email protected]@css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/[email protected]@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/[email protected]@postcss-loader/src/index.js??ref--6-oneOf-1-2!./css/userinfo.css

solution

In fact, the key is: !./src/components/set/set-information.vue?vue&type=style&index=0&lang=css&here to tell you the wrong position
then: ref--6-oneOf-1-2!./css/userinfo.csshere to tell you the wrong file

It can be deduced: userinfo.css this file does not exist

Remark

Check the directory structure does indeed lack the discovery of this document, the cause of problems that occur because when using source code management tool is not added to the source code management center userinfo.css go, so do not submit files to the warehouse at the time of commit when the other members do not countersigned the update of the file, and then cause problems.

Guess you like

Origin www.cnblogs.com/nozer1993/p/nodejs_tc_0001.html