找不到模块 ember-metal/streams/stream

Could not find module ember-metal/streams/stream

升级后出现此错误。 运行 ember init 几次。它没有解决它。认为我的一个附加组件导致了这个,因为它没有更新到某些新的 Ember 范例。页面加载完毕,但在某个时刻停止了 - 似乎到达了路线。

如何找到导致此问题的加载项?这是我在浏览器控制台中得到的。 Ember 控制台没有任何反应。

Uncaught Error
: Could not find module ember-metal/streams/stream ember.debug.js
:58missingModule ember.debug.js
:58internalRequire ember.debug.js
:80requireModule ember.debug.js
:44(anonymous function) stream.js
:11Module.exports loader.js
:123Module.reify loader.js
:144Module.exports loader.js
:121Module.reify loader.js
:144Module.exports loader.js
:121requireModule loader.js
:23(anonymous function) index.js
:18exports.default index.js
:15(anonymous function) app.js
:13Module.exports loader.js
:123requireModule loader.js
:23(anonymous function)

您的项目依赖项之一可能需要更新。最有可能的罪魁祸首是 liquid-fire.

祝你好运!

对我来说是因为 'npm link'。我已将我的 Ember 升级到 2.7,并且没有 linked 已 linked 到我的项目的共享项目,这导致了此错误。一旦你升级了你的 ember 版本并且你有一些依赖项目(对于我的情况有一个共享项目,它具有多个应用程序之间的所有通用控制器,模板和模型)执行以下操作:

  1. 升级您当前的项目
  2. rm -rf node_modules 凉亭 tmp
  3. npm link
  4. npn 安装;凉亭安装
  5. npm 启动

如果上述方法不起作用并且您有一个共享应用程序,这应该可以解决此错误。

“ember-i18n”包的更新解决了这个问题。 就我而言,它是从“4.2.2”到“5.3.1”