gpt4 book ai didi

javascript - Angular 错误: Webpack has been initialised using a configuration object that does not match the API schem

转载 作者:行者123 更新时间:2023-11-28 17:11:14 24 4
gpt4 key购买 nike

我在使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com