{"action":"created","issue":{"url":"https://api.github.com/repos/shakyShane/bs-snippet-injector/issues/4","labels_url":"https://api.github.com/repos/shakyShane/bs-snippet-injector/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/shakyShane/bs-snippet-injector/issues/4/comments","events_url":"https://api.github.com/repos/shakyShane/bs-snippet-injector/issues/4/events","html_url":"https://github.com/shakyShane/bs-snippet-injector/issues/4","id":61161388,"number":4,"title":"path.js Throwing TypeError","user":{"login":"willdavidow","id":763985,"avatar_url":"https://avatars.githubusercontent.com/u/763985?v=3","gravatar_id":"","url":"https://api.github.com/users/willdavidow","html_url":"https://github.com/willdavidow","followers_url":"https://api.github.com/users/willdavidow/followers","following_url":"https://api.github.com/users/willdavidow/following{/other_user}","gists_url":"https://api.github.com/users/willdavidow/gists{/gist_id}","starred_url":"https://api.github.com/users/willdavidow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willdavidow/subscriptions","organizations_url":"https://api.github.com/users/willdavidow/orgs","repos_url":"https://api.github.com/users/willdavidow/repos","events_url":"https://api.github.com/users/willdavidow/events{/privacy}","received_events_url":"https://api.github.com/users/willdavidow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-13T17:56:34Z","updated_at":"2015-03-25T21:29:33Z","closed_at":null,"body":"The following code within my gulp task is throwing an error:\r\n```\r\n\r\n    var browserSync = require('browser-sync'),\r\n    bsInjector      = require('bs-snippet-injector');\r\n\r\n    browserSync.use(bsInjector, {\r\n            file: 'theme/footer.php'\r\n    });\r\n\r\n    browserSync({\r\n        files: [\r\n            config.dirs.theme + '/**/*.php',\r\n            config.dirs.theme + '/style.css',\r\n            config.dirs.theme + '/' + config.dirs.js + '/**/*.js'\r\n        ]\r\n    )};\r\n``` \r\n\r\nHere is error output when running gulp:\r\n```\r\n$ gulp\r\n[13:40:37] Using gulpfile /Dev/test/gulpfile.js\r\n[13:40:37] Starting 'sass-dev'...\r\n[13:40:37] Finished 'sass-dev' after 8.72 ms\r\n[13:40:37] Starting 'copy-dev'...\r\n[13:40:37] Finished 'copy-dev' after 403 ms\r\n[13:40:37] Starting 'default'...\r\n[13:40:38] Finished 'default' after 268 ms\r\npath.js:422\r\n      throw new TypeError('Arguments to path.resolve must be strings');\r\n      ^\r\nTypeError: Arguments to path.resolve must be strings\r\n    at Object.posix.resolve (path.js:422:13)\r\n    at module.exports.plugin (/Dev/test/node_modules/bs-snippet-injector/index.js:41:37)\r\n    at null.<anonymous> (/Dev/test/node_modules/browser-sync/node_modules/easy-extender/index.js:55:41)\r\n    at Array.forEach (native)\r\n    at EasyExtender.initUserPlugins (/Dev/test/node_modules/browser-sync/node_modules/easy-extender/index.js:46:21)\r\n    at Object.module.exports.initUserPlugins [as fn] (/Dev/test/node_modules/browser-sync/lib/async.js:251:26)\r\n    at /Dev/test/node_modules/browser-sync/lib/browser-sync.js:135:14\r\n    at iterate (/Dev/test/node_modules/browser-sync/node_modules/async-each-series/index.js:8:5)\r\n    at /Dev/test/node_modules/browser-sync/node_modules/async-each-series/index.js:16:16\r\n    at executeTask (/Dev/test/node_modules/browser-sync/lib/browser-sync.js:156:13)\r\n```\r\n\r\nThe file I'm attempting to inject to is in place at the location being referenced in 'file' and I was not receiving this error before I started using bs-snippet-injector.\r\n\r\nAny thoughts? Please let me know if you need more details.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/shakyShane/bs-snippet-injector/issues/comments/86224502","html_url":"https://github.com/shakyShane/bs-snippet-injector/issues/4#issuecomment-86224502","issue_url":"https://api.github.com/repos/shakyShane/bs-snippet-injector/issues/4","id":86224502,"user":{"login":"shakyShane","id":1643522,"avatar_url":"https://avatars.githubusercontent.com/u/1643522?v=3","gravatar_id":"","url":"https://api.github.com/users/shakyShane","html_url":"https://github.com/shakyShane","followers_url":"https://api.github.com/users/shakyShane/followers","following_url":"https://api.github.com/users/shakyShane/following{/other_user}","gists_url":"https://api.github.com/users/shakyShane/gists{/gist_id}","starred_url":"https://api.github.com/users/shakyShane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shakyShane/subscriptions","organizations_url":"https://api.github.com/users/shakyShane/orgs","repos_url":"https://api.github.com/users/shakyShane/repos","events_url":"https://api.github.com/users/shakyShane/events{/privacy}","received_events_url":"https://api.github.com/users/shakyShane/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T21:29:33Z","updated_at":"2015-03-25T21:29:33Z","body":"Fixed in 2.0.0 :)"}}