这里可能需要一些上下文...我将旧的Ember项目中的文件复制到一个新目录中继续处理它。错误。我玩过nvm,凉亭,纱线等后,大部分东西都被清理干净了。还有一个缺陷。当我运行ember test --server
时,我有一条挥之不去的消息,拒绝消失。我已经使用新项目的名称更新了我的environment.js文件,我已经搜索了project.json,bower.json等。我运行了纱线。仍然存在错误。我已经清除了npm和bower缓存,并安装了新的,删除了我的node_modules和bower_components文件夹......我现在感到恼火。
这是我一直在得到的完全混乱(或多或少):
Died on test #1 at TestLoader.moduleLoadFailure (http://localhost:7357/assets/test-support.js:6468:11)
at TestLoader.require (http://localhost:7357/assets/test-loader.js:69:14)
at TestLoader.loadModules (http://localhost:7357/assets/test-loader.js:58:18)
at Function.TestLoader.load (http://localhost:7357/assets/test-loader.js:89:24)
at http://localhost:7357/assets/test-support.js:6477:16: Could not find module `new-project-directory/tests/helpers/module-for-acceptance` imported from `old-project-directory/tests/acceptance/game-test`@ 2 ms
Source:
Error: Could not find module `new-project-directory/tests/helpers/module-for-acceptance` imported from `old-project-directory/tests/acceptance/game-test`
at missingModule (http://localhost:7357/assets/vendor.js:237:11)
at findModule (http://localhost:7357/assets/vendor.js:248:7)
at Module.findDeps (http://localhost:7357/assets/vendor.js:182:24)
at findModule (http://localhost:7357/assets/vendor.js:252:11)
at requireModule (http://localhost:7357/assets/vendor.js:35:15)
at TestLoader.require (http://localhost:7357/assets/test-loader.js:67:9)
at TestLoader.loadModules (http://localhost:7357/assets/test-loader.js:58:18)
at Function.TestLoader.load (http://localhost:7357/assets/test-loader.js:89:24)
at http://localhost:7357/assets/test-support.js:6477:16
答案 0 :(得分:0)
ember init
后,我又回到了理智的测试失败状态。