{"action":"created","issue":{"url":"https://api.github.com/repos/protractor-cucumber-framework/protractor-cucumber-framework/issues/95","repository_url":"https://api.github.com/repos/protractor-cucumber-framework/protractor-cucumber-framework","labels_url":"https://api.github.com/repos/protractor-cucumber-framework/protractor-cucumber-framework/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/protractor-cucumber-framework/protractor-cucumber-framework/issues/95/comments","events_url":"https://api.github.com/repos/protractor-cucumber-framework/protractor-cucumber-framework/issues/95/events","html_url":"https://github.com/protractor-cucumber-framework/protractor-cucumber-framework/issues/95","id":251534533,"number":95,"title":"Unhandled rejection Error: no such file or directory, resultsCapturer.js:.will-be-removed-after-cucumber-runs.tmp'","user":{"login":"VaaniSai","id":29845660,"avatar_url":"https://avatars1.githubusercontent.com/u/29845660?v=4","gravatar_id":"","url":"https://api.github.com/users/VaaniSai","html_url":"https://github.com/VaaniSai","followers_url":"https://api.github.com/users/VaaniSai/followers","following_url":"https://api.github.com/users/VaaniSai/following{/other_user}","gists_url":"https://api.github.com/users/VaaniSai/gists{/gist_id}","starred_url":"https://api.github.com/users/VaaniSai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VaaniSai/subscriptions","organizations_url":"https://api.github.com/users/VaaniSai/orgs","repos_url":"https://api.github.com/users/VaaniSai/repos","events_url":"https://api.github.com/users/VaaniSai/events{/privacy}","received_events_url":"https://api.github.com/users/VaaniSai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-21T02:23:59Z","updated_at":"2017-10-20T14:51:30Z","closed_at":"2017-08-21T15:48:49Z","author_association":"NONE","body":"I am trying to automate an Angular 4 application. When I run \"protractor config.js\"\r\n\r\nWhen I have format option in my config.ts file to something like this:\r\n**format: ['json:../reporting/results.json']**\r\n\r\nI get the error saying:\r\n**Unhandled rejection Error: ENOENT: no such file or directory, open 'C:\\MyWorkspace\\ProtractorProjects\\protractor-cucumber-sample\\test\\config\\MyWorkspace\\ProtractorProjects\\protractor-cucumber-sample\\node_modules\\protractor-cucumber-framework\\lib\\resultsCapturer.js:.will-be-removed-after-cucumber-runs.tmp'\r\n    at Error (native)\r\n\r\nProcess finished with exit code 100\r\nEmpty test suite.**\r\n\r\nI could understand that it is unable to reach \"resultsCapturer.js\". Am not sure where I should change.\r\n\r\nWhen I change format option to:\r\nformat: ['pretty']\r\n\r\n_I get an error:_\r\n**Unhandled rejection Error: Cannot find module 'C:\\MyWorkspace\\protractor-cucumber-sample\\test\\config\\pretty'\r\n    at Function.Module._resolveFilename (module.js:469:15)**\r\n\r\nI also checked [this docs](https://www.typescriptlang.org/docs/handbook/modules.html#ambient-modules) but could not help me to fix the issue\r\n\r\n_Below are my project details:_\r\n\r\nnode version: v6.10.3\r\nprotractor version: 5.1.2\r\n\r\n**config.ts:**\r\n\r\n    import { Config } from 'protractor';\r\n     \r\n    export let config: Config = {\r\n     \r\n        seleniumAddress: 'http://localhost:4444/wd/hub',\r\n        specs: [\"../features/*.feature\"],\r\n     \r\n        framework: 'custom',\r\n        frameworkPath: require.resolve('protractor-cucumber-framework'),\r\n     \r\n        baseUrl: \"http://localhost:4200/\",\r\n     \r\n        cucumberOpts: {\r\n            compiler: \"ts:ts-node/register\",\r\n            strict: true,\r\n            format: ['json:../reporting/results.json'],\r\n            require: ['../steps/*.js'],\r\n            tags: '@smoke'\r\n        }\r\n    }\r\n\r\n**tsconfig.json:**\r\n\r\n    {\r\n      \"compilerOptions\": {\r\n        \"target\": \"es5\",\r\n        \"module\": \"commonjs\",\r\n        \"moduleResolution\": \"node\",\r\n        \"sourceMap\": true,\r\n        \"typeRoots\": [\r\n          \"./node_modules/@types/\"\r\n        ],\r\n        \"lib\": [\r\n        \"es2015\"\r\n        ],\r\n        \r\n        \"strict\": true\r\n      }\r\n    }\r\n\r\n**package.json:**\r\n\r\n    {\r\n      \"name\": \"protractor-cucumber-sample\",\r\n      \"version\": \"0.0.0\",\r\n      \"private\": true,\r\n      \"scripts\": {\r\n        \"start\": \"node ./bin/www\"\r\n      },\r\n      \"dependencies\": {\r\n        \"@types/jasmine\": \"^2.5.53\",\r\n        \"body-parser\": \"~1.17.1\",\r\n        \"cookie-parser\": \"~1.4.3\",\r\n        \"debug\": \"~2.6.3\",\r\n        \"express\": \"~4.15.2\",\r\n        \"jade\": \"~1.11.0\",\r\n        \"morgan\": \"~1.8.1\",\r\n        \"serve-favicon\": \"~2.4.2\"\r\n      },\r\n      \"devDependencies\": {\r\n        \"@types/chai\": \"^4.0.3\",\r\n        \"@types/cucumber\": \"^2.0.3\",\r\n        \"@types/mkdirp\": \"^0.5.0\",\r\n        \"chai\": \"^4.1.1\",\r\n        \"chai-as-promised\": \"^7.1.1\",\r\n        \"cucumber\": \"^3.0.0\",\r\n        \"cucumber-html-reporter\": \"^2.0.3\",\r\n        \"jasmine\": \"^2.7.0\",\r\n        \"jasminewd2\": \"^2.1.0\",\r\n        \"protractor-cucumber-framework\": \"^4.0.2\",\r\n        \"ts-node\": \"^3.3.0\",\r\n        \"typescript\": \"^2.4.2\"\r\n      }\r\n    }﻿\r\n\r\n\r\nPlease let me know If I need to produce additional info which helps you to address this issue.\r\n\t\r\nAlso please suggest if this is not the right forum for this question or in case you know other forums where this question can be posted.\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/protractor-cucumber-framework/protractor-cucumber-framework/issues/comments/338229225","html_url":"https://github.com/protractor-cucumber-framework/protractor-cucumber-framework/issues/95#issuecomment-338229225","issue_url":"https://api.github.com/repos/protractor-cucumber-framework/protractor-cucumber-framework/issues/95","id":338229225,"user":{"login":"Neal910","id":7651393,"avatar_url":"https://avatars3.githubusercontent.com/u/7651393?v=4","gravatar_id":"","url":"https://api.github.com/users/Neal910","html_url":"https://github.com/Neal910","followers_url":"https://api.github.com/users/Neal910/followers","following_url":"https://api.github.com/users/Neal910/following{/other_user}","gists_url":"https://api.github.com/users/Neal910/gists{/gist_id}","starred_url":"https://api.github.com/users/Neal910/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neal910/subscriptions","organizations_url":"https://api.github.com/users/Neal910/orgs","repos_url":"https://api.github.com/users/Neal910/repos","events_url":"https://api.github.com/users/Neal910/events{/privacy}","received_events_url":"https://api.github.com/users/Neal910/received_events","type":"User","site_admin":false},"created_at":"2017-10-20T14:51:30Z","updated_at":"2017-10-20T14:51:30Z","author_association":"NONE","body":"I am using similar setting:\r\n\r\n```\r\ncucumberOpts: {   \r\n        compiler: \"ts:ts-node/register\",    \r\n        strict: true,\r\n        format: ['pretty'],\r\n        require: ['../steps/*.js'],\r\n        tags: '@smoke'\r\n    }\r\n````\r\nwith  `\"protractor-cucumber-framework\": \"^4.0.9\",`\r\n\r\nStill get following error: \r\n\"Unhandled rejection Error: Cannot find module '/\\<absoluate path\\>/protractor/pretty' \""}}
{"actor":{"display_login":"Neal910"}}