Closed danawoodman closed 9 years ago
Try to move .transform(...)
from rebundle
function to the place where you init bundler
.
Thanks for the quick reply @andreypopp. I moved it below the bundler = browserify(...);
block but still same error. I also tried setting it as a option during initialization of bundler transform: ['reactify']
. Any other ideas?
Hm... try to bundle with a command line version of browserify:
% browserify -t reactify ./index.js
@andreypopp that works for me:
$ browserify -t reactify src/frontend/index.jsx | grep "h1"
React.createElement("h1", null, "Test")
Strange that it would work on command line and not via Gulp. Do my version numbers look correct @andreypopp?
@andreypopp I figured it out; for some reason I had Watchify 0.10.2
installed but the current version is 2.1.1
. No idea why I had such an old version installed, but updating it fixed the issue. Thanks!
i am new to react trying to run Griddle-master (from griddle site) test cases from command line getting same error , \DCPS\datatable-host\test\griddle-test.js:13 return
can anybody help me here
Hi, I've done my best to work around this issue but cannot find the error in my approach.
I'm trying to setup Reactify using various iterations of the following code (in my
gulpfile.js
):Running
gulp scripts
produces the errorUnexpected token
pointing to the beggining of a JSX in this file:Versions:
Is there something obvious I'm missing? Would love any help, thanks!