如何追踪“未捕获错误:无法找到模块`@ ember / component`”错误?

时间:2017-12-06 14:38:10

标签: ember.js ember-cli

我已将我的ember项目中的插件ember-attacherv0.11.4更新为v0.13.0,现在我收到以下错误:

Uncaught Error: Could not find module `@ember/component` imported from `@ember-decorators/argument/-debug/validated-component`
at missingModule (loader.js:247)
at findModule (loader.js:258)
at Module.findDeps (loader.js:168)
at findModule (loader.js:262)
at Module.findDeps (loader.js:168)
at findModule (loader.js:262)
at Module.findDeps (loader.js:168)
at findModule (loader.js:262)
at Module.findDeps (loader.js:168)
at findModule (loader.js:262)

我认为当ember-decorators想要使用它时,@ember/component尚未提供/加载存在一些问题。但我不知道如何追查导致问题的原因。

除了模块错误之外没有其他问题/例子(只有一些来自babel-polyfill的被捕获的)。

为新的依赖项安装删除node_modules没有改变任何内容。它也发生在生产和发展中。

我还尝试在一个新的ember-cli项目中重现相同的问题,但没有设法这样做(创建一个空项目,添加了所有相同的依赖项和配置设置,创建了一个显示一个余烬的测试页面 - attacher工具提示和popover)。

所以它必须是一个特例,但我不知道是什么导致了这个问题。

如何更好地了解错误发生的原因?是否有任何提示可以从debbuging中获得,我没有认识到?

我无法提供项目的存储库,但如果需要特定信息,则可能能够提供单独的代码部分。

ember -v --verbose:

ember-cli: 2.17.0
http_parser: 2.7.0
node: 8.9.1
v8: 6.1.534.47
uv: 1.15.0
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
nghttp2: 1.25.0
openssl: 1.0.2m
icu: 59.1
unicode: 9.0
cldr: 31.0.1
tz: 2017b
os: win32 x64

依赖关系:

"broccoli-asset-rev": "^2.6.0",
"ember-ajax": "^3.0.0",
"ember-attacher": "^0.13.0",
"ember-chrome-devtools": "^0.2.0",
"ember-cli": "~2.17.0",
"ember-cli-app-version": "^3.1.3",
"ember-cli-autoprefixer": "^0.8.1",
"ember-cli-babel": "^6.10.0",
"ember-cli-dependency-checker": "^2.1.0",
"ember-cli-eslint": "^4.2.2",
"ember-cli-htmlbars": "^2.0.3",
"ember-cli-htmlbars-inline-precompile": "^1.0.2",
"ember-cli-inject-live-reload": "^1.7.0",
"ember-cli-moment-shim": "^3.5.0",
"ember-cli-qunit": "^4.1.1",
"ember-cli-sass": "^7.1.2",
"ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-string-helpers": "1.5.0",
"ember-cli-uglify": "^2.0.0",
"ember-cli-windows-addon": "^1.3.1",
"ember-cli-yuidoc": "^0.8.8",
"ember-composable-helpers": "^2.0.3",
"ember-cp-validations": "^3.5.1",
"ember-crumbly": "^2.0.0-alpha.1",
"ember-data": "~2.17.0",
"ember-debounced-properties": "0.0.5",
"ember-drag-drop": "^0.4.6",
"ember-export-application-global": "^2.0.0",
"ember-intl": "^2.31.1",
"ember-intl-cp-validations": "^3.0.1",
"ember-load-initializers": "^1.0.0",
"ember-md5": "^1.0.1",
"ember-moment": "^7.5.0",
"ember-paper": "~1.0.0-beta.3",
"ember-pikaday": "^2.2.3",
"ember-pouch": "^4.3.0",
"ember-promise-helpers": "^1.0.3",
"ember-resolver": "^4.5.0",
"ember-responsive": "^2.0.5",
"ember-route-action-helper": "^2.0.6",
"ember-shepherd": "^2.8.0",
"ember-simple-auth": "^1.4.0",
"ember-source": "~2.17.0",
"ember-tether": "^1.0.0-beta.0",
"ember-timepicker": "^0.2.0",
"ember-transition-helper": "^0.0.6",
"ember-truth-helpers": "^2.0.0",
"ember-user-activity": "^0.9.0",
"ember-uuid": "^1.0.0",
"ember-wormhole": "^0.5.3",
"eslint": "^4.12.1",
"eslint-plugin-ember": "^5.0.1",
"loader.js": "^4.6.0",
"paper-time-picker": "^0.1.15",
"pouchdb-authentication": "^0.5.5",
"string_score": "^0.1.22",
"yuidoc-ember-theme": "^1.4.0"

感谢任何帮助或帮助。已经感谢您花时间阅读我的帖子。

0 个答案:

没有答案