Closed Gnimuc closed 9 years ago
Thanks for opening an issue. When working on #19, the goal was to turn off node-jsx
. I believe the idea was that the .jsx
files were already preprocessed. However what you're trying to do sounds reasonable, you may need to move the require('babel/register')
higher up. Have you tried putting that in your main server file?
yes that was the problem. i reinstalled babel and put require('babel/register')
in my server.js, then the error was killed. thank you so much @jedireza :+1:
:boom: great to hear!!
the doc says when using another jsx-transformer instead of
node-jsx
, one should setuseNodeJsx
tofalse
.i want to use babel as the transformer, my configuration looks like this:
i simply added
require(babel/register)
at the top ofhome.jsx
, then this error occurred.i guess this is not the correct way to change the jsx-transformer.
i'm very new to nodejs, sorry for disturbing.