The error reporting path is:
http: domain name/CSS/XX css
In fact, it should be:
http: domain name/dist/CSS/XX/CSS
Method:
ensure that the value of publicpath is: publicpath: ‘. /’
ps:config.js or Vue-config.js file, according to the actual situation, if the editor cannot be found, search publicpath globally
Read More:
- [Solved] Vue item packaging error: Failed to load resource: the server responded with a status of 404 (Not Found)
- “Failed to load resource: net::ERR_FILE_NOT_FOUND” error. The project created by vue-cli 3.0 can run under dev, and an error is reported after packaging, and the page is blank.
- The toast light prompt of vant in Vue reports an error
- [Solved] Vue Element Date plug-in reports an error in form validation
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- [Solved] Vue3 Error: Cannot use ‘in‘ operator to search for ‘path‘ in undefined
- React project is packaged and set as required Error [How to Solve]
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- Vue installs sass loader directly, and node sass reports an error
- [Solved] Vue Error: Error: Rule can only have one resource source (provided resource and test + include + ex
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)
- [Solved] Vue Start Project Error: ValidationError: webpack Dev Server Invalid Options
- Vue2.0: How to Use vue3 api to encapsulate Axios
- [Solved] Vue Use gzip Package Error: Rule can only have one resource source
- ‘webpack dev server’ is not an internal or external command, nor is it a runnable program or batch file. Solution: error in cnpm run dev:
- How to Solve “Vue is not defined” Error
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] Vue uses webpack to package error: Createapp is not a function
- Vue a page is mounted to send multiple requests at the same time, and the loading is processed uniformly