flux icon indicating copy to clipboard operation
flux copied to clipboard

Issue running flux-todomvc example

Open fattenap opened this issue 12 years ago • 5 comments

Hi,

I was trying to run the flux-todomvc example and followed the instructions but it didn't work. I found that reactify requires / * * @jsx React.DOM */ to be the first line in any .jsx/.js files. Once I added the directive to the top of all the components I was able to get it to work.

Is this just me?

Frank

fattenap avatar Aug 07 '14 12:08 fattenap

I was not able to get it work even with this modification + it throws me "'STATIC_ROOT' is not recognized as an internal or external command, operable program or batch file." (I'm using Win7).

nobodyguy avatar Aug 07 '14 15:08 nobodyguy

thanks @fattenap -- I think something in the JSX transformation must have changed. I've updated all the React components to reflect what you found. @nobodyguy -- not sure why this is happening for you. I'll need to investigate that further.

fisherwebdev avatar Aug 08 '14 16:08 fisherwebdev

@fisherwebdev thanks a lot. If you need any information or help with investigating, just let me know.

nobodyguy avatar Aug 10 '14 15:08 nobodyguy

I just tried last version of todo example and the only thing that didn't work is the STATIC_ROOT variable in package.json, because you can't define variables in Windows this way. So, if I change it to "set STATIC_ROOT=./static & watchify -o js/bundle.js -v -d .", it works as expected. Btw, is STATIC_ROOT really needed?

nobodyguy avatar Aug 11 '14 07:08 nobodyguy

Removed statics. https://github.com/facebook/flux/commit/b3f53b179f58e9ec2b221574abdb621c4005fd50

fisherwebdev avatar Sep 02 '14 06:09 fisherwebdev