久久久久久久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 服務器渲染中的 Zone.js 停止工

        Due to Zone.js in Angular Universal server rendering stops working. How to fix?(由于 Angular Universal 服務器渲染中的 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 服務器渲染中的 Zone.js 停止工作.怎么修?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

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

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

                  然而,我發現如果我沒有正確版本的 Zone.js,對 MySQL 數據庫的請求將不會進行.我有以下錯誤:

                  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 接收數據.

                  and I started receiving data from MySQL.

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

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

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

                  在 HTML 模板中.

                  in HTML-template.

                  我返回一個沒有連接到 MySQL 的 JSON,發現即使在這種情況下服務器渲染也不起作用.

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

                  所以我玩了一點,發現如果我使用命令:

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

                  npm install zone.js
                  

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

                  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.

                  所以現在我可以在沒有服務器渲染的情況下使用工作服務器渲染或連接到 MySQL.不是服務器渲染和與數據庫的工作連接.

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

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

                  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
                  

                  現在我可以向 MySQL 發出請求,而且我有一個服務器渲染,可以看到我的 HTML 模板中的所有數據.

                  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.

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

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

                  相關文檔推薦

                  SQL query to get all products, categories and meta data woocommerce/wordpress(獲取所有產品、類別和元數據的 SQL 查詢 woocommerce/wordpress)
                  How to use MySQL in WSL (Windows Subsystem for Linux)?(如何在 WSL(Linux 的 Windows 子系統)中使用 MySQL?)
                  PowerShell MySQL Backup Script Error in Task Scheduler 0x00041301(任務計劃程序中的 PowerShell MySQL 備份腳本錯誤 0x00041301)
                  Import the data from the XML files into a MySQL database(將數據從 XML 文件導入 MySQL 數據庫)
                  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. 主站蜘蛛池模板: 国产一区二区三区高清 | 日韩视频免费看 | 少妇一级淫片免费放播放 | 日韩国产欧美一区 | 亚洲国产精品久久久 | 一区二区三区欧美在线 | 中文字幕亚洲一区 | 亚洲三级在线观看 | 黄色毛片黄色毛片 | 欧美国产日韩成人 | 欧美在线综合 | 日日摸夜夜爽人人添av | 欧美日高清视频 | 欧美在线视频二区 | 中文字幕日韩专区 | 一区二区三区视频 | 成人毛片视频在线播放 | 亚洲国产aⅴ成人精品无吗 欧美激情欧美激情在线五月 | 91玖玖 | 天天操操 | 99热电影| 人人人艹| 日韩免费一区 | 亚洲国产视频一区二区 | 国产高清一区二区三区 | 日韩欧美在线免费观看视频 | 欧美一区二区三区在线观看 | 日韩精品在线免费观看 | 玖玖视频免费 | 久草新在线 | 国产亚洲一区二区三区在线观看 | 免费成人在线网站 | 日本三级电影在线看 | 欧美激情综合网 | 精品国产一区二区三区久久久久久 | 一级黄色夫妻生活 | 亚洲一区精品在线 | 久久中文字幕一区 | 国产亚洲精品精品国产亚洲综合 | 激情综合五月 | 成人国产免费观看 |