{"action":"created","issue":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/846","labels_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/846/labels{/name}","comments_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/846/comments","events_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/846/events","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/846","id":111832860,"number":846,"title":"Failing build with TypeScript on Windows","user":{"login":"lukasholcik","id":6814085,"avatar_url":"https://avatars.githubusercontent.com/u/6814085?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasholcik","html_url":"https://github.com/lukasholcik","followers_url":"https://api.github.com/users/lukasholcik/followers","following_url":"https://api.github.com/users/lukasholcik/following{/other_user}","gists_url":"https://api.github.com/users/lukasholcik/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasholcik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasholcik/subscriptions","organizations_url":"https://api.github.com/users/lukasholcik/orgs","repos_url":"https://api.github.com/users/lukasholcik/repos","events_url":"https://api.github.com/users/lukasholcik/events{/privacy}","received_events_url":"https://api.github.com/users/lukasholcik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-16T13:33:43Z","updated_at":"2015-10-27T01:26:52Z","closed_at":null,"body":"Hi there,\r\nI created a new project using gulp-angular.\r\n\r\nSettings:\r\n\r\n    Angular 1.4\r\n    TypeScript\r\n    Bootstrap\r\n    AngularUI\r\n    LESS\r\n\r\nAnd this is the error I'm getting in `gulp scripts`:\r\n\r\n    ERROR in [default] c:/devel/my/gulp-sandbox2/src/app/components/malarkey/malarkey.directive.ts:1:34\r\n    Cannot find module '../githubContributor/githubContributor.service'.\r\n    \r\n    ERROR in [default] c:/devel/my/gulp-sandbox2/src/app/index.module.ts:3:23\r\n    Cannot find module './index.config'.\r\n    \r\n    ERROR in [default] c:/devel/my/gulp-sandbox2/src/app/index.module.ts:4:29\r\n    Cannot find module './index.route'.\r\n    \r\n    ERROR in [default] c:/devel/my/gulp-sandbox2/src/app/index.module.ts:5:25\r\n    Cannot find module './index.run'.\r\n    \r\n    ERROR in [default] c:/devel/my/gulp-sandbox2/src/app/index.module.ts:6:31\r\n    Cannot find module './main/main.controller'.\r\n    \r\n    ERROR in [default] c:/devel/my/gulp-sandbox2/src/app/index.module.ts:7:34\r\n    Cannot find module '../app/components/githubContributor/githubContributor.service'.\r\n    \r\n    ERROR in [default] c:/devel/my/gulp-sandbox2/src/app/index.module.ts:8:33\r\n    Cannot find module '../app/components/webDevTec/webDevTec.service'.\r\n    \r\n    ERROR in [default] c:/devel/my/gulp-sandbox2/src/app/index.module.ts:9:27\r\n    Cannot find module '../app/components/navbar/navbar.directive'.\r\n    \r\n    ERROR in [default] c:/devel/my/gulp-sandbox2/src/app/index.module.ts:10:29\r\n    Cannot find module '../app/components/malarkey/malarkey.directive'.\r\n    \r\n    ERROR in [default] c:/devel/my/gulp-sandbox2/src/app/main/main.controller.ts:1:44\r\n    Cannot find module '../components/webDevTec/webDevTec.service'.\r\n\r\nThis is the version listing from npm:\r\n\r\n    gulpSandbox2@0.0.0 c:\\devel\\my\\gulp-sandbox2\r\n    ├── awesome-typescript-loader@0.14.0\r\n    ├── browser-sync@2.9.11\r\n    ├── browser-sync-spa@1.0.3\r\n    ├── chalk@1.1.1\r\n    ├── del@2.0.2\r\n    ├── eslint-plugin-angular@0.12.0\r\n    ├── estraverse@4.1.0\r\n    ├── gulp@3.9.0\r\n    ├── gulp-angular-templatecache@1.8.0\r\n    ├── gulp-autoprefixer@3.0.2\r\n    ├── gulp-eslint@1.0.0\r\n    ├── gulp-filter@3.0.1\r\n    ├── gulp-flatten@0.2.0\r\n    ├── gulp-inject@3.0.0\r\n    ├── gulp-less@3.0.3\r\n    ├── gulp-load-plugins@0.10.0\r\n    ├── gulp-minify-css@1.2.1\r\n    ├── gulp-minify-html@1.0.4\r\n    ├── gulp-protractor@1.0.0\r\n    ├── gulp-rename@1.2.2\r\n    ├── gulp-replace@0.5.4\r\n    ├── gulp-rev@6.0.1\r\n    ├── gulp-rev-replace@0.4.2\r\n    ├── gulp-size@2.0.0\r\n    ├── gulp-sourcemaps@1.6.0\r\n    ├── gulp-uglify@1.4.2\r\n    ├── gulp-useref@1.3.0\r\n    ├── gulp-util@3.0.6\r\n    ├── http-proxy-middleware@0.9.0\r\n    ├── jasmine-core@2.3.4\r\n    ├── karma@0.13.11\r\n    ├── karma-coverage@0.5.2\r\n    ├── karma-jasmine@0.3.6\r\n    ├── karma-ng-html2js-preprocessor@0.2.0\r\n    ├── karma-phantomjs-launcher@0.2.1\r\n    ├── lodash@3.10.1\r\n    ├── main-bower-files@2.9.0\r\n    ├── ng-annotate-loader@0.0.10\r\n    ├── phantomjs@1.9.18\r\n    ├── tsd@0.6.5\r\n    ├── tslint-loader@1.0.2\r\n    ├── typescript@1.6.2\r\n    ├── uglify-save-license@0.4.1\r\n    ├── webpack-stream@2.1.1\r\n    ├── wiredep@2.2.2\r\n    └── wrench@1.5.8\r\n\r\n.yo-rc\r\n\r\n    {\r\n      \"generator-gulp-angular\": {\r\n        \"version\": \"1.0.0\",\r\n        \"props\": {\r\n          \"angularVersion\": \"~1.4.2\",\r\n          \"angularModules\": [\r\n            {\r\n              \"key\": \"animate\",\r\n              \"module\": \"ngAnimate\"\r\n            },\r\n            {\r\n              \"key\": \"cookies\",\r\n              \"module\": \"ngCookies\"\r\n            },\r\n            {\r\n              \"key\": \"touch\",\r\n              \"module\": \"ngTouch\"\r\n            },\r\n            {\r\n              \"key\": \"sanitize\",\r\n              \"module\": \"ngSanitize\"\r\n            },\r\n            {\r\n              \"key\": \"messages\",\r\n              \"module\": \"ngMessages\"\r\n            },\r\n            {\r\n              \"key\": \"aria\",\r\n              \"module\": \"ngAria\"\r\n            }\r\n          ],\r\n          \"jQuery\": {\r\n            \"key\": \"jquery2\"\r\n          },\r\n          \"resource\": {\r\n            \"key\": \"restangular\",\r\n            \"module\": \"restangular\"\r\n          },\r\n          \"router\": {\r\n            \"key\": \"ui-router\",\r\n            \"module\": \"ui.router\"\r\n          },\r\n          \"ui\": {\r\n            \"key\": \"bootstrap\",\r\n            \"module\": null\r\n          },\r\n          \"bootstrapComponents\": {\r\n            \"key\": \"ui-bootstrap\",\r\n            \"module\": \"ui.bootstrap\"\r\n          },\r\n          \"cssPreprocessor\": {\r\n            \"key\": \"less\",\r\n            \"extension\": \"less\"\r\n          },\r\n          \"jsPreprocessor\": {\r\n            \"key\": \"typescript\",\r\n            \"extension\": \"ts\",\r\n            \"srcExtension\": \"ts\"\r\n          },\r\n          \"htmlPreprocessor\": {\r\n            \"key\": \"noHtmlPrepro\",\r\n            \"extension\": \"html\"\r\n          },\r\n          \"foundationComponents\": {\r\n            \"name\": null,\r\n            \"version\": null,\r\n            \"key\": null,\r\n            \"module\": null\r\n          },\r\n          \"paths\": {\r\n            \"src\": \"src\",\r\n            \"dist\": \"dist\",\r\n            \"e2e\": \"e2e\",\r\n            \"tmp\": \".tmp\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n\r\nThanks for having a look at this...\r\nLukas"},"comment":{"url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/comments/151336019","html_url":"https://github.com/Swiip/generator-gulp-angular/issues/846#issuecomment-151336019","issue_url":"https://api.github.com/repos/Swiip/generator-gulp-angular/issues/846","id":151336019,"user":{"login":"jbrantly","id":196944,"avatar_url":"https://avatars.githubusercontent.com/u/196944?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrantly","html_url":"https://github.com/jbrantly","followers_url":"https://api.github.com/users/jbrantly/followers","following_url":"https://api.github.com/users/jbrantly/following{/other_user}","gists_url":"https://api.github.com/users/jbrantly/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrantly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrantly/subscriptions","organizations_url":"https://api.github.com/users/jbrantly/orgs","repos_url":"https://api.github.com/users/jbrantly/repos","events_url":"https://api.github.com/users/jbrantly/events{/privacy}","received_events_url":"https://api.github.com/users/jbrantly/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T01:26:52Z","updated_at":"2015-10-27T01:26:52Z","body":"It sounds to me a lot like webpack isn't configured to resolve certain extensions, either `.ts` or maybe `.js`. You should look at your webpack config and make sure `resolve.extensions` is set to something like `['', '.ts', '.js']`. [I noticed by default it doesn't include `.js`.](https://github.com/Swiip/generator-gulp-angular/blob/2b615bdd74f6b2e68f52cd9c675e52797cf76cd8/app/templates/gulp/_scripts.js#L37)"}}