首页 文章

使用旧项目目录的模块接受

提问于
浏览
0

可能需要一些上下文...我将旧的Ember项目中的文件复制到一个新目录中继续处理它 . 错误 . 我玩过nvm,凉亭,纱线等后,大部分东西都被清理干净了 . 还有一个缺陷 . 当我跑 ember test --server 时,我有一条挥之不去的消息,拒绝消失 . 我've updated my environment.js file with the name of the new project, I'已经冲过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

1 回答

  • 0

    嗯,这很尴尬 . 我没有删除测试文件夹 . 一旦完成,一切都恢复正常 . 删除测试目录并再次运行 ember init 后,我又回到了理智的测试失败状态 .

相关问题