久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<small id='5FqmS'></small><noframes id='5FqmS'>

    • <bdo id='5FqmS'></bdo><ul id='5FqmS'></ul>
    <legend id='5FqmS'><style id='5FqmS'><dir id='5FqmS'><q id='5FqmS'></q></dir></style></legend>

    <tfoot id='5FqmS'></tfoot>

      1. <i id='5FqmS'><tr id='5FqmS'><dt id='5FqmS'><q id='5FqmS'><span id='5FqmS'><b id='5FqmS'><form id='5FqmS'><ins id='5FqmS'></ins><ul id='5FqmS'></ul><sub id='5FqmS'></sub></form><legend id='5FqmS'></legend><bdo id='5FqmS'><pre id='5FqmS'><center id='5FqmS'></center></pre></bdo></b><th id='5FqmS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5FqmS'><tfoot id='5FqmS'></tfoot><dl id='5FqmS'><fieldset id='5FqmS'></fieldset></dl></div>

        由于 Angular Universal 服務(wù)器渲染中的 Zone.js 停止工

        Due to Zone.js in Angular Universal server rendering stops working. How to fix?(由于 Angular Universal 服務(wù)器渲染中的 Zone.js 停止工作.怎么修?)
      2. <tfoot id='8a6pV'></tfoot>
          <tbody id='8a6pV'></tbody>
          • <bdo id='8a6pV'></bdo><ul id='8a6pV'></ul>

                <legend id='8a6pV'><style id='8a6pV'><dir id='8a6pV'><q id='8a6pV'></q></dir></style></legend>

                  <small id='8a6pV'></small><noframes id='8a6pV'>

                1. <i id='8a6pV'><tr id='8a6pV'><dt id='8a6pV'><q id='8a6pV'><span id='8a6pV'><b id='8a6pV'><form id='8a6pV'><ins id='8a6pV'></ins><ul id='8a6pV'></ul><sub id='8a6pV'></sub></form><legend id='8a6pV'></legend><bdo id='8a6pV'><pre id='8a6pV'><center id='8a6pV'></center></pre></bdo></b><th id='8a6pV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='8a6pV'><tfoot id='8a6pV'></tfoot><dl id='8a6pV'><fieldset id='8a6pV'></fieldset></dl></div>
                  本文介紹了由于 Angular Universal 服務(wù)器渲染中的 Zone.js 停止工作.怎么修?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  當我在請求數(shù)據(jù)時返回簡單的 JSON 而沒有連接到數(shù)據(jù)庫時,Angular Universal 中的服務(wù)器渲染工作正常.

                  When in my requests for data I return simple JSON without connection to database the server rendering in Angular Universal works fine.

                  然而,我發(fā)現(xiàn)如果我沒有正確版本的 Zone.js,對 MySQL 數(shù)據(jù)庫的請求將不會進行.我有以下錯誤:

                  However I have found that requests to MySQL database is not going if I don't have a proper version of Zone.js. I had the following error:

                  TypeError: Cannot read property 'on' of undefined
                          at Protocol._enqueue (/Applications/MAMP/htdocs/Angular2/myproject/node_modules/mysql/lib/protocol/Protocol.js:152:5)
                  ...
                  

                  我還注意到我有一個警告:

                  Also I payed attention that I had a warning:

                  angular2-universal@2.1.0-rc.1 requires a peer of zone.js@~0.6.21 but none was installed. 
                  

                  所以我安裝了正確的 Zone.js:

                  So I installed proper Zone.js:

                  npm install zone.js@0.6.21
                  

                  然后我開始從 MySQL 接收數(shù)據(jù).

                  and I started receiving data from MySQL.

                  但是!此時服務(wù)器渲染停止工作!我只看到:

                  BUT! At this point server rendering stops working! I only see:

                  <!--template bindings={}-->
                  

                  在 HTML 模板中.

                  in HTML-template.

                  我返回一個沒有連接到 MySQL 的 JSON,發(fā)現(xiàn)即使在這種情況下服務(wù)器渲染也不起作用.

                  I moved back to return a JSON without connection to MySQL and have found that even at this case server rendering is not working.

                  所以我玩了一點,發(fā)現(xiàn)如果我使用命令:

                  So I have played a little with this and have found that if I use command:

                  npm install zone.js
                  

                  然后當我在沒有連接到數(shù)據(jù)庫的情況下返回 JSON 時,服務(wù)器渲染正常工作,但是如果我嘗試連接到 MySQL,則會發(fā)生原始錯誤.

                  then server rendering works properly when I return JSON without connection to database, but if I try to connect to MySQL then original error occurs.

                  所以現(xiàn)在我可以在沒有服務(wù)器渲染的情況下使用工作服務(wù)器渲染或連接到 MySQL.不是服務(wù)器渲染和與數(shù)據(jù)庫的工作連接.

                  So now I have either working server rendering or connection to MySQL without server rendering. Not server rendering and working connection to database.

                  如果有人知道應(yīng)該做什么,我將不勝感激.謝謝你.

                  If anyone knows what should be done I'll appreciate the help. Thank you.

                  推薦答案

                  我找到了解決方案.就我而言,問題已通過以下命令解決:

                  I have found the solution. In my case the issue was resolved by the command:

                  npm install zone.js@latest
                  

                  現(xiàn)在我可以向 MySQL 發(fā)出請求,而且我有一個服務(wù)器渲染,可以看到我的 HTML 模板中的所有數(shù)據(jù).

                  Now I can do the requests to MySQL and also I have a server rendering and can see all the data in my HTML-template.

                  這篇關(guān)于由于 Angular Universal 服務(wù)器渲染中的 Zone.js 停止工作.怎么修?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  SQL query to get all products, categories and meta data woocommerce/wordpress(獲取所有產(chǎn)品、類別和元數(shù)據(jù)的 SQL 查詢 woocommerce/wordpress)
                  How to use MySQL in WSL (Windows Subsystem for Linux)?(如何在 WSL(Linux 的 Windows 子系統(tǒng))中使用 MySQL?)
                  PowerShell MySQL Backup Script Error in Task Scheduler 0x00041301(任務(wù)計劃程序中的 PowerShell MySQL 備份腳本錯誤 0x00041301)
                  Import the data from the XML files into a MySQL database(將數(shù)據(jù)從 XML 文件導入 MySQL 數(shù)據(jù)庫)
                  installed Xampp on Windows 7 32-bit. Errors when starting(在 Windows 7 32 位上安裝 Xampp.啟動時的錯誤)
                  Mysql lower case table on Windows xampp(Windows xampp 上的 Mysql 小寫表)
                      <tbody id='SwVzO'></tbody>

                    <small id='SwVzO'></small><noframes id='SwVzO'>

                    <tfoot id='SwVzO'></tfoot>
                    • <i id='SwVzO'><tr id='SwVzO'><dt id='SwVzO'><q id='SwVzO'><span id='SwVzO'><b id='SwVzO'><form id='SwVzO'><ins id='SwVzO'></ins><ul id='SwVzO'></ul><sub id='SwVzO'></sub></form><legend id='SwVzO'></legend><bdo id='SwVzO'><pre id='SwVzO'><center id='SwVzO'></center></pre></bdo></b><th id='SwVzO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='SwVzO'><tfoot id='SwVzO'></tfoot><dl id='SwVzO'><fieldset id='SwVzO'></fieldset></dl></div>
                        • <bdo id='SwVzO'></bdo><ul id='SwVzO'></ul>

                            <legend id='SwVzO'><style id='SwVzO'><dir id='SwVzO'><q id='SwVzO'></q></dir></style></legend>
                          1. 主站蜘蛛池模板: 日韩激情视频一区 | a在线视频 | 嫩草网 | 中文字幕国产一区 | 你懂的在线视频播放 | 午夜理伦三级理论三级在线观看 | 91在线免费视频 | 岛国精品 | 国产黄色大片在线免费观看 | av大片| 一区二区在线观看免费视频 | 91精品福利 | 久久精品中文字幕 | 在线观看国产视频 | 精品久久一区 | 日韩国产中文字幕 | 红色av社区 | 日本中文字幕在线观看 | 国产免费av在线 | 一级免费黄色 | 日韩在线中文字幕 | 欧美 日韩 中文 | 日本在线视频一区二区 | 毛片一区二区 | 亚洲精品区 | 久久99精品久久久 | 中文字幕在线观看视频一区 | 亚洲一区二区久久 | 日韩久久网| 一本一道久久a久久精品蜜桃 | 一区二区三区免费网站 | 精品亚洲91 | 亚洲精品一 | 亚洲人va欧美va人人爽 | 国产精品久久久久一区二区三区 | 欧美在线日韩 | 成人国产精品久久 | 欧美日韩国产一区二区三区 | 久久国际精品 | 亚洲国产成人精品一区二区 | www.天天操.com |