将Ember从1.13升级到2.3会中断fastboot吗?

时间:2019-03-18 09:33:39

标签: javascript ember.js ember-cli

我已将余烬应用程序从1.13升级到2.3,并安装了ember-cli-fastboot插件。但是,升级后,该插件无法正常工作,为什么?我创建了一个版本为2.18的新项目,并重复了相同的安装。 Fastboot正常工作。我不能从零开始我的项目。因为它在服务器上工作。我只能逐步升级余烬。

Ember版本:

ember: 2.3.2
ember-cli: 3.8.1
node: 10.15.2
os: linux x64

构建信息:

Slowest Nodes (totalTime => 5% )              | Total (avg)         
----------------------------------------------+---------------------
LessCompiler (1)                              | 681ms               
Rollup (3)                                    | 604ms (201 ms)      
Babel: ember-data (2)                         | 367ms (183 ms)      
Babel: chat (3)                               | 250ms (83 ms)       
Babel: ember-cli-fastboot (1)                 | 213ms               
Package /assets/vendor.js (1)                 | 190ms     

package.json

"broccoli-asset-rev": "^2.2.0",
"ember-ajax": "^5.0.0",
"ember-cli": "^3.8.1",
"ember-cli-app-version": "^3.2.0",
"ember-cli-babel": "^7.5.0",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-fastboot": "^2.0.4",
"ember-cli-htmlbars": "^1.0.1",
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.1",
"ember-cli-less": "^2.0.1",
"ember-cli-qunit": "^4.4.0",
"ember-cli-release": "0.2.8",
"ember-cli-sri": "^2.0.0",
"ember-cli-stripe": "~0.4.0",
"ember-cli-uglify": "^1.2.0",
"ember-cookies": "^0.3.1",
"ember-data": "^2.3.0",
"ember-disable-proxy-controllers": "^1.0.2",
"ember-export-application-global": "^2.0.0",
"ember-fetch": "^6.5.0",
"ember-inflector": "2.2.0",
"ember-legacy-views": "emberjs/ember-legacy-views#master",
"ember-load-initializers": "^0.5.0",
"ember-resolver": "^5.1.3",
"loader.js": "^4.0.0"

1 个答案:

答案 0 :(得分:0)

如果您是第一次安装Fastboot,则可能是某些代码或预期在浏览器中运行的附加组件出现错误。 IC-Ajax可能是您的问题,但我们需要您看到的任何错误的更多详细信息,以进一步解决问题。

快速启动可以与Ember 2.3一起使用,但是...