Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

ionic 2 watch typescript not working #199

Closed
jgw96 opened this issue Oct 19, 2016 · 14 comments
Closed

ionic 2 watch typescript not working #199

jgw96 opened this issue Oct 19, 2016 · 14 comments
Assignees
Labels

Comments

@jgw96
Copy link
Contributor

jgw96 commented Oct 19, 2016

From @balicekt on October 19, 2016 10:39

I wanted to try new ionic 2. I made this steps:

ionic start HelloWorld --v2
cd HelloWorld
ionic serve

until now is everything OK. BUT when I go to folder src/pages/home and adjust file home.ts nothing is hapening watcher is not working but when I adjust file home.html watcher is working well console show changes and browser automatically refresh page.

Does anyone know why in ionic 2 watcher does not working with typescript files? Or is there something I did wrong? Also in Ionic project is no gulpfile.js anymore.

I will be glad for any help.

Thank you

Copied from original issue: ionic-team/ionic-framework#8799

@pierrepastre
Copy link

pierrepastre commented Oct 20, 2016

Same issue here, since last update, ts does not compile anymore.

@glaucocustodio
Copy link

Since I've updated to beta version (npm install @ionic/app-scripts@beta) the ionic serve is not creating a server at localhost:8100.

@ghost
Copy link

ghost commented Oct 20, 2016

Same issue here. With beta @ionic/[email protected] the ionic serve command just hangs after build, and livereload is never started:

[16:46:03]  ionic-app-scripts 0.0.37
[16:46:03]  watch started ...
[16:46:03]  build dev started ...
[16:46:03]  clean started ...
[16:46:03]  clean finished in 12 ms
[16:46:03]  copy started ...
[16:46:03]  transpile started ...
[16:46:03]  lint started ...
[16:46:09]  lint finished in 5.83 s
[16:46:10]  transpile finished in 7.09 s
[16:46:10]  webpack started ...
[16:46:10]  copy finished in 7.30 s
[16:46:24]  webpack finished in 13.97 s
[16:46:24]  sass started ...
[16:46:26]  sass finished in 2.38 s
[16:46:26]  build dev finished in 23.47 s

This issue only occurs on my Windows 7 machine. On Mac OS X the same project serves fine with live reload.

My system information on Windows:

Cordova CLI: 6.2.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.37
OS: Windows 7 SP1
Node Version: v5.10.0

My system info on Mac OS X:

Cordova CLI: 6.1.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.37
ios-deploy version: 1.8.6
ios-sim version: 4.1.1
OS: Mac OS X El Capitan
Node Version: v6.4.0
Xcode version: Xcode 8.0 Build version 8A218a

@jgw96
Copy link
Contributor Author

jgw96 commented Oct 20, 2016

@pierrepastre and @glaucocustodio are you all also on windows?

@glaucocustodio
Copy link

I am on OS X Yosemite and Ionic RC.1.

@balicekt
Copy link

balicekt commented Oct 20, 2016

OS X Sierra RC1 - now I updated npm, ionic, cordova and typoscript started working but not everything typoscript is working now but src/assets is not working when I mage new file for example src/assets/i18n/en.json it also make new file in www/assets/i18n... but when I make update in this json it won't appear in www file.

@pierrepastre
Copy link

OSX sierra here, ionic 2.1.1, cordova 6.3.1

@danbucholtz
Copy link
Contributor

We'll look into it. Glad to hear it's not just Windows.

Thanks,
Dan

@jgw96 jgw96 added bug and removed needs_reply labels Oct 21, 2016
@chrste90
Copy link

I have the same issue on Windows 10, but OS X Sierra works fine.

@morrisonbrett
Copy link

I'm also seeing it on Ubuntu. See output here: ionic-team/ionic-framework#8920 (comment)

@danbucholtz
Copy link
Contributor

This issue is fixed here. We are going to release @ionic/[email protected] tomorrow and it will be in that.

Thanks,
Dan

@danbucholtz danbucholtz self-assigned this Oct 27, 2016
@morrisonbrett
Copy link

Great. Wow - Been using .37-2 all day. Webpack - so much faster on watch/build/refresh cycle.

@glaucocustodio
Copy link

After I update to "@ionic/app-scripts": "0.0.37-3" ionic serve was not working because the manifest.json file was missing.

@morrisonbrett
Copy link

I recommend you put manifest.json in the root of /src. I had it somewhere else (and referred to it in index.html), but it seems to be safer if you leave it at root (where I guess some code is assuming it will be).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants