Как создать сеть в Ioni c 5 - PullRequest
0 голосов
/ 19 июня 2020

Я пытаюсь создать веб-приложение с помощью Ioni c 5 Я пробовал:

ionic cordova build browser --prod --release

и

ionic serve --prod

оба не прошли и имеют ошибку, например:

1. If 'ion-header' is an Angular component, then verify that it is part of this module.
2. If 'ion-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

1. If 'ion-icon' is an Angular component, then verify that it is part of this module.
2. If 'ion-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the'@NgModule.schemas' of this component to suppress this message.

'ion-label' is 
not a known element:
1. If 'ion-label' is an Angular component, then verify that it is part of this module.
2. If 'ion-label' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

Кажется, что при построении производства он не реконизирует компонент ioni c.

Я в порядке, когда использую следующую команду:

ionic serve

, так что как бороться с Это? Спасибо

1 Ответ

1 голос
/ 19 июня 2020

Команда для создания кода ioni c для Интернета: ionic build.

Если вы хотите создать код для производства, используйте - ionic build --prod.

Это сборка весь код Ioni c в папку www, которую вы можете использовать с nginx или любым другим веб-сервером.

...