{"action":"opened","issue":{"url":"https://api.github.com/repos/sergeyt/karma-typescript-preprocessor/issues/49","repository_url":"https://api.github.com/repos/sergeyt/karma-typescript-preprocessor","labels_url":"https://api.github.com/repos/sergeyt/karma-typescript-preprocessor/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/sergeyt/karma-typescript-preprocessor/issues/49/comments","events_url":"https://api.github.com/repos/sergeyt/karma-typescript-preprocessor/issues/49/events","html_url":"https://github.com/sergeyt/karma-typescript-preprocessor/issues/49","id":131185207,"number":49,"title":"Cannot find file ....ts.ktp.js","user":{"login":"paynoattn","id":7308577,"avatar_url":"https://avatars.githubusercontent.com/u/7308577?v=3","gravatar_id":"","url":"https://api.github.com/users/paynoattn","html_url":"https://github.com/paynoattn","followers_url":"https://api.github.com/users/paynoattn/followers","following_url":"https://api.github.com/users/paynoattn/following{/other_user}","gists_url":"https://api.github.com/users/paynoattn/gists{/gist_id}","starred_url":"https://api.github.com/users/paynoattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paynoattn/subscriptions","organizations_url":"https://api.github.com/users/paynoattn/orgs","repos_url":"https://api.github.com/users/paynoattn/repos","events_url":"https://api.github.com/users/paynoattn/events{/privacy}","received_events_url":"https://api.github.com/users/paynoattn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-03T23:11:27Z","updated_at":"2016-02-03T23:11:27Z","closed_at":null,"body":"Hello,\r\n\r\nThanks for this wonderful plugin. I cannot get it to work however. As you can see, I am running into an issue. I don't understand it, as I can see the file in my file system as the error appears, but then it shortly thereafter disappears.\r\n\r\n```\r\n$ karma start\r\n\r\nSTART:\r\n03 02 2016 16:08:07.454:ERROR [karma]: { [Error: ENOENT: no such file or directory, unlink '/Users/paynoattn/www/prototypes/jspm-ng1-template/www/app/app.spec.ts.ktp.js']\r\n  errno: -2,\r\n  code: 'ENOENT',\r\n  syscall: 'unlink',\r\n  path: '/Users/cpawlukiewicz/www/prototypes/jspm-ng1-template/www/app/app.spec.ts.ktp.js' }\r\nError: ENOENT: no such file or directory, unlink '/Users/cpawlukiewicz/www/prototypes/jspm-ng1-template/www/app/app.spec.ts.ktp.js'\r\n    at Error (native)\r\n    at Object.fs.unlinkSync (fs.js:980:18)\r\n    at /Users/cpawlukiewicz/www/prototypes/jspm-ng1-template/node_modules/karma-typescript-preprocessor/index.js:109:6\r\n    at tryToString (fs.js:414:3)\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:401:12)\r\n```\r\n\r\nHere's my karma.conf.js:\r\n```\r\n// Karma configuration\r\n\r\nmodule.exports = function(config) {\r\n  config.set({\r\n     \r\n    plugins: [\r\n      require('karma-typescript-preprocessor'),\r\n      require('karma-mocha-reporter'),\r\n      require('karma-chrome-launcher'),\r\n      require('karma-mocha'),\r\n      require('karma-jspm'),\r\n      require('karma-chai')\r\n    ],\r\n    \r\n    // base path that will be used to resolve all patterns (eg. files, exclude)\r\n    basePath: '',\r\n\r\n    // frameworks to use\r\n    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter\r\n    frameworks: [ \r\n      'jspm', \r\n      'mocha', \r\n      'chai'\r\n    ],\r\n\r\n    // start these browsers\r\n    // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher\r\n    browsers: ['Chrome'],\r\n\r\n    // test results reporter to use\r\n    // possible values: 'dots', 'progress'\r\n    // available reporters: https://npmjs.org/browse/keyword/karma-reporter\r\n    reporters: ['mocha'],\r\n\r\n    // Continuous Integration mode\r\n    // if true, Karma captures browsers, runs the tests and exits\r\n    singleRun: true,\r\n\r\n    // enable / disable colors in the output (reporters and logs)\r\n    colors: true,\r\n\r\n    // list of files / patterns to load in the browser\r\n    files: [],\r\n    \r\n    preprocessors: {\r\n      'www/app/app.spec.ts': ['typescript'],\r\n      'www/app/components/**/*.spec.ts': ['typescript']\r\n    },\r\n    \r\n    typescriptPreprocessor: {\r\n      typings: ['www/app/typings/**.*.d.ts'],\r\n      options: {\r\n        target: 'ES5',\r\n        module: 'system'\r\n      },\r\n      transformPath: function(path) {\r\n        return path.replace(/\\.ts$/, '.js');\r\n      }\r\n    },\r\n\r\n    jspm: {\r\n      // Edit this to your needs\r\n      config: 'www/config.js',\r\n      loadFiles: ['www/app/**/*.spec.ts'],\r\n      serveFiles: [\r\n        'www/app/**/*.ts',\r\n        'www/app/**/*.html',\r\n        'www/app/**/*.scss'\r\n      ]\r\n    },\r\n    \r\n    proxies: {\r\n      // '/jspm_packages': '/base/jspm_packages',\r\n      // '/jspm.config.js': '/base/jspm.config.js'\r\n    },\r\n\r\n    // list of files to exclude\r\n    exclude: [],\r\n\r\n    // level of logging\r\n    // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG\r\n    logLevel: config.LOG_INFO,\r\n\r\n  });\r\n};\r\n```"}}