我正在尝试使用 Travis CI 进行测试,但我得到了:
找不到模块:错误:无法解析'文件'或者'目录' ../api/Seminar in ...
我在本地计算机(Mac)上看不到此错误。
Travis的节点版本与我的Mac完全相同:
node v7.1.0
npm v3.10.9
这是错误的更大转储:
ERROR in ./~/isparta-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/UpcomingSeminars.vue
Module not found: Error: Cannot resolve 'file' or 'directory' ../api/Seminar in /home/travis/build/tam5/my-app/src/components
@ ./~/isparta-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/UpcomingSeminars.vue 9:786-813
14 11 2016 19:50:54.546:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/
14 11 2016 19:50:54.548:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
14 11 2016 19:50:54.554:INFO [launcher]: Starting browser PhantomJS
14 11 2016 19:50:54.922:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket /#IMyChahiZWxdaUeTAAAA with id 80626811
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
Error: Cannot find module "../api/Seminar"
at webpack:///src/components/UpcomingSeminars.vue?4396:9:0 <- index.js:26609
这是我的整个.travis.yml
:
language: node_js
node_js:
- "7"
- "6"
我如何解决此问题以便在Travis上运行?