{"action":"created","issue":{"url":"https://api.github.com/repos/alexmingoia/gulp-jsx/issues/9","labels_url":"https://api.github.com/repos/alexmingoia/gulp-jsx/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/alexmingoia/gulp-jsx/issues/9/comments","events_url":"https://api.github.com/repos/alexmingoia/gulp-jsx/issues/9/events","html_url":"https://github.com/alexmingoia/gulp-jsx/issues/9","id":91879191,"number":9,"title":"Factory problems","user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-29T18:45:59Z","updated_at":"2015-06-29T18:46:46Z","closed_at":null,"body":"```\r\n:~/dev/JAVASCRIPT/activity (master *)$ gulp build\r\n[11:44:04] Using gulpfile ~/dev/JAVASCRIPT/activity/gulpfile.js\r\n[11:44:04] Starting 'build'...\r\n\r\n/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp-jsx/node_modules/jsx-transform/lib/jsx.js:92\r\n    throw new Error('Missing options.factory function name.');\r\n          ^\r\nError: Missing options.factory function name.\r\n    at processOptions (/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp-jsx/node_modules/jsx-transform/lib/jsx.js:92:11)\r\n    at Object.fromString (/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp-jsx/node_modules/jsx-transform/lib/jsx.js:68:13)\r\n    at DestroyableTransform.write [as _transform] (/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp-jsx/lib/jsx.js:29:15)\r\n    at DestroyableTransform.Transform._read (/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp-jsx/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)\r\n    at DestroyableTransform.Transform._write (/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp-jsx/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)\r\n    at doWrite (/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp-jsx/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)\r\n    at writeOrBuffer (/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp-jsx/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)\r\n    at DestroyableTransform.Writable.write (/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp-jsx/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)\r\n    at write (/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)\r\n    at flow (/Users/peterbe/dev/JAVASCRIPT/activity/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)\r\n:~/dev/JAVASCRIPT/activity (master *)$\r\n```\r\nI debugged line 92 in jsx.js and the `options` variable is `{}` so the `options.factory` is `undefined`. \r\n\r\nMy gulp file looks like this:\r\n```\r\nvar gulp = require('gulp');\r\nvar serve = require('gulp-serve');\r\nvar jsx = require('gulp-jsx');\r\n\r\ngulp.task('serve', serve('.'));\r\n\r\ngulp.task('build', function() {\r\n  return gulp.src('src/*.js')\r\n    .pipe(jsx())\r\n    .pipe(gulp.dest('dist'));\r\n});\r\n\r\ngulp.task('default', function() {\r\n  // place code for your default task here\r\n});\r\n```\r\n\r\nWouldn't be surprised if it's something obvious."},"comment":{"url":"https://api.github.com/repos/alexmingoia/gulp-jsx/issues/comments/116794026","html_url":"https://github.com/alexmingoia/gulp-jsx/issues/9#issuecomment-116794026","issue_url":"https://api.github.com/repos/alexmingoia/gulp-jsx/issues/9","id":116794026,"user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T18:46:46Z","updated_at":"2015-06-29T18:46:46Z","body":"For what it's worth, I only have 1 file. `src/app.js` and it looks like this:\r\n```\r\n/** @jsx React.DOM */\r\nvar FilteredList = React.createClass({\r\n...\r\n```"}}