{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/tsify/issues/29","repository_url":"https://api.github.com/repos/TypeStrong/tsify","labels_url":"https://api.github.com/repos/TypeStrong/tsify/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/tsify/issues/29/comments","events_url":"https://api.github.com/repos/TypeStrong/tsify/issues/29/events","html_url":"https://github.com/TypeStrong/tsify/issues/29","id":56915558,"number":29,"title":"Cannot find name 'module'.","user":{"login":"ddennis","id":300269,"avatar_url":"https://avatars.githubusercontent.com/u/300269?v=3","gravatar_id":"","url":"https://api.github.com/users/ddennis","html_url":"https://github.com/ddennis","followers_url":"https://api.github.com/users/ddennis/followers","following_url":"https://api.github.com/users/ddennis/following{/other_user}","gists_url":"https://api.github.com/users/ddennis/gists{/gist_id}","starred_url":"https://api.github.com/users/ddennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddennis/subscriptions","organizations_url":"https://api.github.com/users/ddennis/orgs","repos_url":"https://api.github.com/users/ddennis/repos","events_url":"https://api.github.com/users/ddennis/events{/privacy}","received_events_url":"https://api.github.com/users/ddennis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-07T15:57:22Z","updated_at":"2016-02-15T00:01:33Z","closed_at":"2015-02-07T16:28:57Z","body":"Hi \r\n\r\nSorry if i have complete misunderstood this plugin, i am expectng to use it with my browserify project.\r\nenabling me to use current browserify syntax, and type annotations.\r\n\r\nI'am on Windows, using gulp:\r\n\r\n    gulp.task('browserify', function() {\r\n        var bundler = browserify({\r\n            entries: ['./client/src/main'],\r\n            extensions: ['.ts'],\r\n            debug: true\r\n     }).plugin('tsify', { noImplicitAny: true, module: 'commonjs' });\r\n     var bundle = function() {\r\n     bundleLogger.start();\r\n     return bundler\r\n     .bundle()\r\n     .on('error', handleErrors)\r\n     .pipe(source('app.js'))\r\n     .pipe(gulp.dest(buildDir))\r\n     .on('end', bundleLogger.end);\r\n     };\r\n     return bundle();\r\n });\r\n\r\nWhen i start requiring modules i get the following error:\r\n TS2304: client/src/main.ts(2,14): TS2304: Cannot find name 'require'.\r\n\r\nmain.ts\r\n\tvar config = require('./routes')\r\nroutes.ts\r\n\tvar config = function() {\t}\r\n\tmodule.exports = config;\r\n\r\nRemoving the require statement stops the error\r\nAny help would be much appreciated\r\n/Dennis .\r\n"},"comment":{"url":"https://api.github.com/repos/TypeStrong/tsify/issues/comments/184008847","html_url":"https://github.com/TypeStrong/tsify/issues/29#issuecomment-184008847","issue_url":"https://api.github.com/repos/TypeStrong/tsify/issues/29","id":184008847,"user":{"login":"danieldram","id":4514000,"avatar_url":"https://avatars.githubusercontent.com/u/4514000?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldram","html_url":"https://github.com/danieldram","followers_url":"https://api.github.com/users/danieldram/followers","following_url":"https://api.github.com/users/danieldram/following{/other_user}","gists_url":"https://api.github.com/users/danieldram/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldram/subscriptions","organizations_url":"https://api.github.com/users/danieldram/orgs","repos_url":"https://api.github.com/users/danieldram/repos","events_url":"https://api.github.com/users/danieldram/events{/privacy}","received_events_url":"https://api.github.com/users/danieldram/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T00:01:33Z","updated_at":"2016-02-15T00:01:33Z","body":"That's what I am most concerned about too.. I build ng apps this way"}}