我正在处理未经处理且实时服务器没有响应问题的角度4.我使用角度材料和应用程序刚刚破坏,因为mdc.select.min.css canout可以在@ material> select中找到。通过重新启动计算机,以下问题开始时是蓝色的。我可以在所需文件夹中的文件中看到。但仍然得到错误。生成新项目并重新安装所有包但没有运气。
这是错误
Failed to load resource: the server responded with a status of 404 (Not Found)
:4200/node_modules//dist/mdc.select.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
polyfills.bundle.js:3057 Unhandled Promise rejection: Failed to load ../../../../../node_modules//dist/mdc.select.min.css ; Zone: ; Task: Promise.then ; Value: Failed to load ../../../../../node_modules//dist/mdc.select.min.css undefined
api.onUnhandledError @ polyfills.bundle.js:3057
polyfills.bundle.js:3059 Error: Uncaught (in promise): Failed to load ../../../../../node_modules//dist/mdc.select.min.css
at resolvePromise (polyfills.bundle.js:3184)
at resolvePromise (polyfills.bundle.js:3155)
at polyfills.bundle.js:3232
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.bundle.js:2838)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (polyfills.bundle.js:2605)
at drainMicroTaskQueue (polyfills.bundle.js:2998)
at XMLHttpRequest.ZoneTask.invoke (polyfills.bundle.js:2904)
api.onUnhandledError @ polyfills.bundle.js:3059
](url)
角cli.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "edrop"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
}
],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [
{
"project": "src/tsconfig.app.json"
},
{
"project": "src/tsconfig.spec.json"
},
{
"project": "e2e/tsconfig.e2e.json"
}
],
"test": {
"karma": {
"config": "./karma.conf.js"
}
},
"defaults": {
"styleExt": "css",
"component": {}
}
}