petehunt / node-jsx

transparently require() jsx from within node
164 stars 32 forks source link

issue transforming jsx when using node-fibers #42

Open svnm opened 9 years ago

svnm commented 9 years ago

I am building an isomorphic site using Fluxxor and React. Using node-jsx for the transforms and it works very well. Just having an issue though now as I have installed node-fibers to try to get around the issue of async data not populating server side on load. https://github.com/facebook/react/issues/1739

node-fibers does not seem to work well with node-jsx though. I get the following error:

Error: Error transforming /var/www/nodeapp/node_modules/fibers/fibers.js to JSX: Error: Parse Error: Line 2: Illegal return statement at Object.require.extensions.(anonymous function) as .js