Projects built with vue-cli always report errors when introducing static third-party plug-ins, and the path should be correct. Index.js has not changed.

clipboard.png

clipboard.png

Feb.27,2021

report the error Can't resolve'.. static/vendor/css/mui.css' in 'Estrong vuevuedemosrc' , indicating that it is from the src directory to find the module mui.css, you should put your vendor folder in the src directory instead of the static directory, and then change the relative address should be fine. In addition, this kind of file should not be placed in the static directory in the first place. The contents can be accessed via http://ip:port/static after deployment. For more information, please see vue-webpack directory structure

.

my spacing chart


When

introduces a third-party plug-in, to see if you need to introduce other dependent files, you have to introduce the dependent file first and then introduce the third-party plug-in. There is also a key path that cannot be preceded by spaces.

Menu