vue启动 cannot get 怎么解决,进来看看 5C

浏览器打印如下:

Refused to load the image 'http://localhost:8082/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.

localhost/:1 Failed to load resource: the server responded with a status of 404 (Not Found)

请问怎么解决

补充,应该是下面的原因引起的,启动时候会报这些错:

error in ./src/views/auditmgr/systemreport/component/TimeReport.vue

Module build failed: ValidationError: CSS Loader Invalid Options

options should NOT have additional properties

at validateOptions (D:\yunxiazi-portal-ui\node_modules\schema-utils\src\validateOptions.js:32:11)
at Object.loader (D:\yunxiazi-portal-ui\node_modules\css-loader\dist\index.js:44:28)

@ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?{"minimize":false,"sourceMap":false}!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-53530556","scoped":false,"hasInlineConfig":false}!./~/less-loader/dist/cjs.js?{"sourceMap":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/views/auditmgr/systemreport/component/TimeReport.vue 4:14-436 13:3-17:5 14:22-444
@ ./src/views/auditmgr/systemreport/component/TimeReport.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/views/auditmgr/opsreport/component/OpsReportBase.vue
@ ./src/views/auditmgr/opsreport/component/OpsReportBase.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/views/auditmgr/opsreport/child/OpsTime.vue
@ ./src/views/auditmgr/opsreport/child/OpsTime.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/views/auditmgr/opsreport/OpsReport.vue
@ ./src/views/auditmgr/opsreport/OpsReport.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js

error in ./src/components/tabs/YabTabBar.vue

Module build failed: ValidationError: CSS Loader Invalid Options

options should NOT have additional properties

at validateOptions (D:\yunxiazi-portal-ui\node_modules\schema-utils\src\validateOptions.js:32:11)
at Object.loader (D:\yunxiazi-portal-ui\node_modules\css-loader\dist\index.js:44:28)

@ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?{"minimize":false,"sourceMap":false}!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-6d0be1e9","scoped":false,"hasInlineConfig":false}!./~/less-loader/dist/cjs.js?{"sourceMap":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/tabs/YabTabBar.vue 4:14-411 13:3-17:5 14:22-419
@ ./src/components/tabs/YabTabBar.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/tabs/YabTabNav.vue
@ ./src/components/tabs/YabTabNav.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/tabs/YabTab.vue
@ ./src/components/tabs/YabTab.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/proxy/record/sidebar/RecordSidebar.vue
@ ./src/proxy/record/sidebar/RecordSidebar.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/proxy/Record.vue
@ ./src/proxy/Record.vue
@ ./src/proxy/record.js
@ multi ./build/dev-client ./src/proxy/record.js

error in ./src/proxy/connect/sidebar/dialog/SidebarNetdiskFileUploadDialog.vue

Module build failed: ValidationError: CSS Loader Invalid Options

options should NOT have additional properties

at validateOptions (D:\yunxiazi-portal-ui\node_modules\schema-utils\src\validateOptions.js:32:11)
at Object.loader (D:\yunxiazi-portal-ui\node_modules\css-loader\dist\index.js:44:28)

@ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?{"minimize":false,"sourceMap":false}!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-1423437a","scoped":false,"hasInlineConfig":false}!./~/less-loader/dist/cjs.js?{"sourceMap":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/proxy/connect/sidebar/dialog/SidebarNetdiskFileUploadDialog.vue 4:14-456 13:3-17:5 14:22-464
@ ./src/proxy/connect/sidebar/dialog/SidebarNetdiskFileUploadDialog.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/proxy/connect/sidebar/children/SidebarFileManageBtns.vue
@ ./src/proxy/connect/sidebar/children/SidebarFileManageBtns.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/proxy/connect/sidebar/children/SidebarFileList.vue
@ ./src/proxy/connect/sidebar/children/SidebarFileList.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/proxy/connect/sidebar/GuacClientSidebar.vue
@ ./src/proxy/connect/sidebar/GuacClientSidebar.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/proxy/Connect.vue
@ ./src/proxy/Connect.vue
@ ./src/proxy/connect.js
@ multi ./build/dev-client ./src/proxy/connect.js

error in ./src/proxy/connect/sidebar/dialog/SidebarFileSaveNetdiskDialog.vue

Module build failed: ValidationError: CSS Loader Invalid Options

options should NOT have additional properties

at validateOptions (D:\yunxiazi-portal-ui\node_modules\schema-utils\src\validateOptions.js:32:11)
at Object.loader (D:\yunxiazi-portal-ui\node_modules\css-loader\dist\index.js:44:28)

@ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?{"minimize":false,"sourceMap":false}!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-5ab1ea24","scoped":false,"hasInlineConfig":false}!./~/less-loader/dist/cjs.js?{"sourceMap":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/proxy/connect/sidebar/dialog/SidebarFileSaveNetdiskDialog.vue 4:14-454 13:3-17:5 14:22-462
@ ./src/proxy/connect/sidebar/dialog/SidebarFileSaveNetdiskDialog.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/proxy/connect/sidebar/children/SidebarFileManageBtns.vue
@ ./src/proxy/connect/sidebar/children/SidebarFileManageBtns.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/proxy/connect/sidebar/children/SidebarFileList.vue
@ ./src/proxy/connect/sidebar/children/SidebarFileList.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/proxy/connect/sidebar/GuacClientSidebar.vue
@ ./src/proxy/connect/sidebar/GuacClientSidebar.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/proxy/Connect.vue
@ ./src/proxy/Connect.vue
@ ./src/proxy/connect.js
@ multi ./build/dev-client ./src/proxy/connect.js

error in ./src/components/yab-transfer-ex/yab-transfer-new/transfer-panel.vue

Module build failed: ValidationError: CSS Loader Invalid Options

options should NOT have additional properties

at validateOptions (D:\yunxiazi-portal-ui\node_modules\schema-utils\src\validateOptions.js:32:11)
at Object.loader (D:\yunxiazi-portal-ui\node_modules\css-loader\dist\index.js:44:28)

@ ./~/vue-style-loader!./~/css-loader/dist/cjs.js?{"minimize":false,"sourceMap":false}!./~/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-7156e841","scoped":false,"hasInlineConfig":false}!./~/less-loader/dist/cjs.js?{"sourceMap":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/yab-transfer-ex/yab-transfer-new/transfer-panel.vue 4:14-428 13:3-17:5 14:22-436
@ ./src/components/yab-transfer-ex/yab-transfer-new/transfer-panel.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/yab-transfer-ex/yab-transfer-new/main.vue
@ ./src/components/yab-transfer-ex/yab-transfer-new/main.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/yab-transfer-ex/yab-transfer-ex.vue
@ ./src/components/yab-transfer-ex/yab-transfer-ex.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/views/workorder/opsworkorder/dialog/opsWorkOrderAccountEdit.vue
@ ./src/views/workorder/opsworkorder/dialog/opsWorkOrderAccountEdit.vue
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/views/workorder/opsworkorder/OpsWorkOrderDetail.vue
@ ./src/views/workorder/opsworkorder/OpsWorkOrderDetail.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js

error in ./src/proxy/connect/sidebar/children/SidebarDialogBreadcrumb.vue

Module build failed: ValidationError: CSS Loader Invalid Options

options should NOT have additional properties

1个回答

error in ./src/views/auditmgr/systemreport/component/TimeReport.vue

Module build failed: ValidationError: CSS Loader Invalid Options

options should NOT have additional properties

找错误从第一个开始解决,,有时候下面的错误是第一个造成的。TimeReport.vue这个组件里,CSS有问题。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐