Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React - jsx --watch does nothing after first conversion

I can't use in browser JSXTransformer.js even for development, because i am using require.js for loading modules. When i run jsx --watch src/ build/, actually just one jsx->js conversion is performed against files in src directory, but subsequently, if i change any file in src directory, nothing happened, no translation jsx->js (like if jsx --watch didn't noticed any changes).

like image 243
Krab Avatar asked Mar 30 '14 02:03

Krab


Video Answer


2 Answers

Same happened to me.

Try this command line:

jsx --watch -x jsx src/ build/
like image 62
user2038099 Avatar answered Sep 22 '22 16:09

user2038099


I had the same problem, but this helped:

jsx --watch ./scr ./build

like image 40
André Avatar answered Sep 21 '22 16:09

André