Skip to content

'gulp watch' not recompiling .ts files on Windows #901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
psychowood opened this issue Nov 12, 2015 · 7 comments
Closed

'gulp watch' not recompiling .ts files on Windows #901

psychowood opened this issue Nov 12, 2015 · 7 comments

Comments

@psychowood
Copy link

As per issue subject, the watch task does not seems to recognize TypeScript changes correctly in Windows. Tested on multiple Windows installations (Win7,Win8,Win10). Project was scaffolded yesterday from v1.0.0.

The console seems to be correct (and in line to what is logged on my Mac, which recompiles correctly, tho).

[17:31:49] webpack is watching for changes
[BS] [BrowserSync SPA] Running...
[BS] Access URLs:
 -----------------------------------
       Local: http://localhost:3000/
    External: http://10.0.2.15:3000/
 -----------------------------------
          UI: http://localhost:3001
 UI External: http://10.0.2.15:3001
 -----------------------------------
[BS] Serving files from: .tmp\serve
[BS] Serving files from: src
[17:32:25] Time: 441ms
          Asset     Size  Chunks       Chunk Names
index.module.js  34.3 kB       0       main
[BS] Reloading Browsers...
[17:32:25] webpack is watching for changes
@ytkj
Copy link

ytkj commented Nov 12, 2015

The same problem in my environment.
#893 may be a temporary solution, but not a fundamental one.
I think this may be a problem caused by webpack or awesome-typescript-loader...

@jbrantly
Copy link

(somewhat shameless plug) @jasteph reported ts-loader worked, might be worth a try (and help narrow down where the problem lies)

@ytkj
Copy link

ytkj commented Nov 12, 2015

s-panferov/awesome-typescript-loader#72 works for me. Try it.

@Swiip
Copy link
Owner

Swiip commented Nov 18, 2015

Sorry, I don't have a Win env to test that kind of issues. Hope someone of the community could help.

@craigsh
Copy link

craigsh commented Dec 2, 2015

Changing package.json to make "awesome-typescript-loader": "~0.15.6" fixes the problem.
Then I had to add an excludes config to the tsconfig.json file:

{
"compilerOptions": {
"target": "es5",
"module": "commonjs"
},
"exclude": [
"node_modules",
"bower_components"
]
}

@AEPKILL
Copy link

AEPKILL commented Jan 14, 2016

@craigsh is right,thanks very much。

@Swiip
Copy link
Owner

Swiip commented Mar 31, 2016

That should be fixed with the switch on ts-loader in the last release: https://github.com/Swiip/generator-gulp-angular/releases/tag/v1.1.0

@Swiip Swiip closed this as completed Mar 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants