作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在使用 Angular 7 时遇到此错误,今天刚开始,我不知道这里到底发生了什么。
我尝试再次更新、删除并安装所有软件包,但没有成功。
Invalid configuration object. Webpack has been initialised using aconfiguration object that does not match the API schema.
- configuration.entry should be one of these: function | object { : non-empty string | [non-empty string] } | non-empty string |[non-empty string] -> The entry point(s) of the compilation.
Details:
- configuration.entry should be an instance of function-> A Function returning an entry object, an entry string, an entry array or a promise to these things.
- configuration.entry['styles'] should be a string.-> The string is resolved to a module which is loaded upon startup.
- configuration.entry['styles'] should not contain the item 'C:/node_modules\angular-bootstrap-md\scss\mdb-free.scss'twice.
- configuration.entry should be a string.-> An entry point without name. The string is resolved to a module which is loaded upon startup.
- configuration.entry should be an array:[non-empty string] WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using aconfiguration object that does not match the API schema.
- configuration.entry should be one of these: function | object { : non-empty string | [non-empty string] } | non-empty string |[non-empty string] -> The entry point(s) of the compilation.
Details:
- configuration.entry should be an instance of function-> A Function returning an entry object, an entry string, an entry array or a promise to these things.
- configuration.entry['styles'] should be a string.-> The string is resolved to a module which is loaded upon startup.
- configuration.entry['styles'] should not contain the item 'C:/node_modules\angular-bootstrap-md\scss\mdb-free.scss'twice.
- configuration.entry should be a string.-> An entry point without name. The string is resolved to a module which is loaded upon startup.
- configuration.entry should be an array:[non-empty string]at webpack (C:/node_modules\webpack\lib\webpack.js:31:9)at Observable.rxjs_1.Observable.obs [as _subscribe] (C:/node_modules@angular-devkit\build-webpack\src\webpack-dev-server\index.js:37:37)at Observable._trySubscribe(C:/node_modules\rxjs\internal\Observable.js:44:25)at Observable.subscribe (C:/node_modules\rxjs\internal\Observable.js:30:22)at C:/node_modules\rxjs\internal\util\subscribeTo.js:22:31at Object.subscribeToResult (C:/node_modules\rxjs\internal\util\subscribeToResult.js:10:45)at MergeMapSubscriber._innerSub (C:/node_modules\rxjs\internal\operators\mergeMap.js:82:29)at MergeMapSubscriber._tryNext (C:/node_modules\rxjs\internal\operators\mergeMap.js:76:14)at MergeMapSubscriber._next (C:/node_modules\rxjs\internal\operators\mergeMap.js:59:18)at MergeMapSubscriber.Subscriber.next (C:/node_modules\rxjs\internal\Subscriber.js:67:18)at TapSubscriber._next (C:/node_modules\rxjs\internal\operators\tap.js:65:26)at TapSubscriber.Subscriber.next (C:/node_modules\rxjs\internal\Subscriber.js:67:18)at MergeMapSubscriber.notifyNext (C:/node_modules\rxjs\internal\operators\mergeMap.js:92:26)at InnerSubscriber._next (C:/node_modules\rxjs\internal\InnerSubscriber.js:28:21)at InnerSubscriber.Subscriber.next (C:/node_modules\rxjs\internal\Subscriber.js:67:18)at MergeMapSubscriber.notifyNext (C:/node_modules\rxjs\internal\operators\mergeMap.js:92:26)
最佳答案
检查你的 angular.json 文件,是否有重复的 CSS 文件!有时,当您安装依赖项时,它们会添加 angular.json 文件中已存在的 CSS 文件。
关于javascript - Angular 错误: Webpack has been initialised using a configuration object that does not match the API schem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54346780/
我是一名优秀的程序员,十分优秀!