Uncaught SyntaxError: неожиданный токен <runtime.4501af5c35d1125f6901.js: 1 при запуске IISnode - PullRequest
0 голосов
/ 27 июня 2019

Корневой каталог внутри iisnode enter image description here

внутри клиентского каталога enter image description here

<!doctype html>
     <html lang="en">
    <head>
     <meta charset="utf-8">
       <title>ANSYS Licensing Portal</title>
       <base href="/node/">
       <meta name="viewport" content="width=device-width, initial-scale=1">
       <link rel="icon" type="image/x-icon" href="favicon.ico">
       <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
       <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
       <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="" crossorigin="anonymous">
       <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="" crossorigin="anonymous"></script>
      <link rel="stylesheet" href="styles.82aa555aa62ae3bd79d8.css"></head>
    <body>
       <style>...</style>
        <app-root>
                <div class="top-container">
            <mat-toolbar class="mat-elevation-z2 toptoolbar">
                <div class="divlogo">
                    <img class="logoloading" src="" alt="Portal Logo">
                </div>
                <div>
                    <p class="loading"> Portal Loading...</p>
                </div>
                <span class="app-toolbar-filler"></span>
            </mat-toolbar>
            </div>
        </app-root>
        <script type="text/javascript" src="runtime.4501af5c35d1125f6901.js"></script>
       <script type="text/javascript" src="polyfills.c466c90744ce632ac8b9.js">
      </script><script type="text/javascript" src="scripts.2491a780f92813f20e72.js"></script>
      <script type="text/javascript" src="main.c1b82e811a8fb7c4cdaf.js"> </script></body>
     </html>

Я бегу iisnode.Я развернул проект в iisnode, как показано в ссылке вопроса.Я включил просмотр каталогов.Я показал web.config, app.js и здесь я также опубликую index.js.

У меня есть статическое содержимое в клиентском каталоге.У меня есть содержимое node.js в каталоге сервера.Обратите внимание, у меня есть только один файл web.config для всего каталога, я не использую web.config для каждого каталога. Это нормально?

Снимок ошибки enter image description here

enter image description here

...