Recently, I created a new Angular 4 project using the Angular CLI. Upon running ng e2e
, the sample end-to-end test worked flawlessly. However, when I later added a subfolder named services
in the app
folder and generated a service within it, the ng e2e
command started throwing an error:
[09:11:56] E/configParser - Error message: failed loading configuration file protractor.conf.js [09:11:56] E/configParser - Error: Cannot find module 'C:\Projects\new\test-project\src\app\services\protractor.conf.js'
I'm puzzled as to why this is happening. It seems like the e2e script is trying to access the services folder, resulting in this error. Is there any way to prevent this? I am not certain about the solution.