Задать вопрос

Как исправить ошибку the character encoding of the plain text document was not declared?

Добрый день. Делаю простенькое тренировочное приложения для изучения Angular и столкнулся с проблемой.
У меня есть роутинг:
{
    path: 'user',
    canActivate: [AuthGuard],
    children: [
      {
        path: 'create',
        component: CreateRequestComponent,
      },
      {
        path: 'update/:id',
        component: UpdateRequestComponent,
      }
   ]
}

То есть, один путь что бы создать пользователя, а другой для его апдейта. Когда нажимаю кнопку то все нормально открываться. Но если сделать refresh страницы, то у меня пустая белая страница, в консоли:
The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature.

Мой index.html
<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <!-- <meta charset="UTF-8"> -->
  <!-- <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' /> -->

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="favicon.ico" rel="icon" type="image/x-icon">

  <title>ANGULAR</title>
  <meta name="description" content="">

  <base href="/">
</head>

<body>
  <app-root></app-root>
</body>

</html>

Если кто знает, помогите пожалуйста
  • Вопрос задан
  • 740 просмотров
Подписаться 1 Простой Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы