Ionic 2 RC0 - serve and run screwed up

Since RC0 , ionic serve and run are not working as expected.

every time , the live reload breaks. Even adding simple console.log() can break it. Every time I need to restart the serve. Issue is it doesn’t compile.

Its totally screwed up. If live reload is working and I try to run it on device , again the live reload breaks and so it doesn’t compile. app won’t work.

Its like a lucky draw , keep restarting and on 2nd or 3rd attempt it will compile and work on device too , with exact same changes.

I restart serve atleast 5 times every 5 minutes ,to get it working.

Unfortunately I’ve got the same issue. Developing became a lucky thing, because you can never be sure when and if your changes got built.

I don’t even know where to start looking for information to solve this. Any hints?

The only thing I find weird is that often, “bundle dev started” appears before “typescript compilation started”. Maybe there’s some ordering/dependency issue.

The only I got was the error thrown during compilations.

Every time it tries to compile , it throws error at random files like

failed to write foo.ts or foo.js something like that.

So , I try closing all opened files in the editor. But ,I am not sure if its the main root cause

Everything breaks , when following pops in serve :-

Caught exception:
 Error: watch EPERM
    at exports._errnoException (util.js:837:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1222:26)

Mind letting us know?

Any solution ?

Temporary solution I got is , don’t run your app while serve is on :confounded:
It fails when you try running , while serve is on.