Угловая ошибка: Webpack был инициализирован с использованием объекта конфигурации, который не соответствует схеме API - PullRequest
0 голосов
/ 24 января 2019

Я получаю эту ошибку, используя angular 7, только что начал сегодня и действительно знаю, что здесь происходит.

Я попытался обновить, удалить и установить все пакеты снова, но безуспешно.

Неверный объект конфигурации. Webpack был инициализирован с использованием объект конфигурации, который не соответствует схеме API. - configuration.entry должен быть одним из следующих: function | объект {: непустая строка | [непустая строка]} | непустая строка | [непустая строка] -> Точка (и) входа компиляции.
Подробности: * configuration.entry должен быть экземпляром функции -> Функция, возвращающая объект ввода, строку ввода, массив ввода или обещание этим вещам. * configuration.entry ['styles'] должно быть строкой. -> Строка разрешается в модуль, который загружается при запуске. * configuration.entry ['styles'] не должен содержать элемент 'C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ angular-bootstrap-md \ scss \ mdb-free.scss' дважды. * configuration.entry должен быть строкой. -> Точка входа без имени. Строка разрешается в модуль, который загружается при запуске. * configuration.entry должен быть массивом: [непустая строка] WebpackOptionsValidationError: Неверный объект конфигурации. Webpack был инициализирован с использованием объект конфигурации, который не соответствует схеме API. - configuration.entry должен быть одним из следующих: function | объект {: непустая строка | [непустая строка]} | непустая строка | [непустая строка] -> Точка (и) входа компиляции.
Подробности: * configuration.entry должен быть экземпляром функции -> Функция, возвращающая объект ввода, строку ввода, массив ввода или обещание этим вещам. * configuration.entry ['styles'] должно быть строкой. -> Строка разрешается в модуль, который загружается при запуске. * configuration.entry ['styles'] не должен содержать элемент 'C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ angular-bootstrap-md \ scss \ mdb-free.scss' дважды. * configuration.entry должен быть строкой. -> Точка входа без имени. Строка разрешается в модуль, который загружается при запуске. * configuration.entry должен быть массивом: [непустая строка] в веб-пакете (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ webpack \ lib \ webpack.js: 31: 9) в Observable.rxjs_1.Observable.obs [как _subscribe] (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules @ angular-devkit \ build-webpack \ src \ webpack-dev-server \ index.js: 37: 37) at Observable._trySubscribe (C: \ Users \ smoreira \ Documents \ Projetos \ oficiais \ док-переводчик фронта \ node_modules \ rxjs \ внутренний \ Observable.js: 44: 25) at Observable.subscribe (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ Observable.js: 30: 22) в C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ util \ subscribeTo.js: 22: 31 в Object.subscribeToResult (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ util \ subscribeToResult.js: 10: 45) в MergeMapSubscriber._innerSub (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ operator \ mergeMap.js: 82: 29) at MergeMapSubscriber._tryNext (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ operator \ mergeMap.js: 76: 14) at MergeMapSubscriber._next (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ operator \ mergeMap.js: 59: 18) в MergeMapSubscriber.Subscriber.next (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ Subscriber.js: 67: 18)at TapSubscriber._next (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ operator \ tap.js: 65: 26) в TapSubscriber.Subscriber.next (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ Subscriber.js: 67: 18) at MergeMapSubscriber.notifyNext (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ operator \ mergeMap.js: 92: 26) в InnerSubscriber._next (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ InnerSubscriber.js: 28: 21) в InnerSubscriber.Subscriber.next (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ Subscriber.js: 67: 18) at MergeMapSubscriber.notifyNext (C: \ Users \ smoreira \ Documents \ projetos \ oficiais \ doc-translationator-front \ node_modules \ rxjs \ internal \ operator \ mergeMap.js: 92: 26)

Ответы [ 2 ]

0 голосов
/ 29 марта 2019

У меня работала установка новейшей версии webpack, версия 4.29.6 с угловой 7.2.11

0 голосов
/ 28 января 2019

Решения были переустановить узел и создать новый угловой проект.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...