Hi,
I'm trying to run Taiga's e2e tests on Ubuntu 14.04. I have the front-
and back ends, including protractor, running. However, I'm getting the
following error:
daniel@daniel-VirtualBox:~/taiga-front$ protractor conf.e2e.js
--suite=full
ERROR - failed loading configuration file conf.e2e.js
/usr/lib/node_modules/protractor/lib/configParser.js:198
throw e;
^
Error: Cannot find module 'babel/register'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/home/daniel/taiga-front/conf.e2e.js:1:63)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
It seems like `babel` has been renamed to `babel-core` [1]. So after
installing `babel-core` and changing `babel/register` to
`babel-core/register` in conf.e2e.js, it instead yields the following
result:
daniel@daniel-VirtualBox:~/taiga-front$ protractor conf.e2e.js
--suite=full
ERROR - failed loading configuration file conf.e2e.js
/usr/lib/node_modules/protractor/lib/configParser.js:198
throw e;
^
ReferenceError: [BABEL]
/home/daniel/taiga-front/e2e/utils/index.js: Unknown option: base.stage
at Logger.error
(/usr/lib/node_modules/babel-core/lib/transformation/file/logger.js:43:11)
at OptionManager.mergeOptions
(/usr/lib/node_modules/babel-core/lib/transformation/file/options/option-manager.js:245:18)
at OptionManager.init
(/usr/lib/node_modules/babel-core/lib/transformation/file/options/option-manager.js:396:10)
at File.initOptions
(/usr/lib/node_modules/babel-core/lib/transformation/file/index.js:191:75)
at new File
(/usr/lib/node_modules/babel-core/lib/transformation/file/index.js:122:22)
at Pipeline.transform
(/usr/lib/node_modules/babel-core/lib/transformation/pipeline.js:42:16)
at Object.transformFileSync
(/usr/lib/node_modules/babel-core/lib/api/node.js:113:10)
at compile
(/usr/lib/node_modules/babel-core/lib/api/register/node.js:111:20)
at loader
(/usr/lib/node_modules/babel-core/lib/api/register/node.js:136:14)
at Object.require.extensions.(anonymous function) [as .js]
(/usr/lib/node_modules/babel-core/lib/api/register/node.js:146:7)
The e2e config was updated only 8 days ago [2], so I find it unlikely
that there's something wrong with the config. I guess it's more likely
that something is wrong with my setup. Maybe the dependencies I have
installed are too new? I have Node 4.2.2, Protractor 2.5.1 and Babel 6.0.15.
[1]:
https://github.com/yeoman/generator-gulp-webapp/issues/356#issuecomment-121768865
[2]:
https://github.com/taigaio/taiga-front/commit/c1dd703d9fc86924d9cc19bf123f0b35dbec4c85