Questions tagged [reactify]
22 questions
10
votes
1 answer
browserify cannot find module 'react'
I have this bit of react code called main.js:
var React = require('react');
var Comment = React.createClass({
render: function(){
return (
{this.props.author}
…
James Lin
- 25,028
- 36
- 133
- 233
7
votes
1 answer
Source maps using gulp, Browserify, reactify, UglifyJS
I'm trying to get source maps for my JavaScript files working with Chrome. The problem with the current gulp script is that the source maps (that Browserify creates) lead to minified versions of files.
For example, let's say that app.jsx is an entry…

Adrian Adkison
- 3,537
- 5
- 33
- 36
6
votes
1 answer
Gulp, Reactify, and Babelify not transforming together
This is my gulpfile code:
gulp.task('react', function () {
browserify('app/src/main.jsx')
.transform(reactify)
.transform(babelify)
.bundle()
.pipe(source('app.js'))
.pipe(streamify(uglify()))
…

MNZT
- 157
- 1
- 10
2
votes
1 answer
Browserify and Reactify source maps include full local path names
I use watchify/ browserify to create a bundle with debug source maps with this command-
watchify main.js -o bundle.js -v -d
When I use Chrome DevTools to debug the resulting app, the source files are accessible in their orginal nested folder…

Dave Pile
- 5,559
- 3
- 34
- 49
1
vote
1 answer
Transpile single React component to use as JS widget
I am working on a fairly complex web app using React.js, and I would like to allow the app's users to use one of the components as an API widget on their sites as well with a script tag (think Google Maps API, Analytics, etc.)
I'm new to React, but…

tsteve
- 549
- 1
- 7
- 16
1
vote
0 answers
gulp-concat is not transforming my jsx files to js with reactify
I'm new to Gulp and I'm trying to transform my jsx files to js files using browserify and reactify but I'm getting and error. My gulp file looks like this:
var gulp = require('gulp'),
nodemon = require('gulp-nodemon'),
browserify =…

corasan
- 2,636
- 3
- 24
- 41
1
vote
1 answer
Browserify/Reactify - Uncaught ReferenceError: function is not defined
I'm trying to abstract my code and I have the following two files in the following structure
main.js
components
- parent.js
main.js
require('./components/Parent');
ReactDOM.render(
,
…

whoisearth
- 4,080
- 13
- 62
- 130
1
vote
3 answers
Isomorphic React - how to make react function as part of the window object
I've been building an isomorphic react app using node-jsx, browserify, reactify, etc. My code runs fine on the server, and components are mounted and rendered correctly. However, the react function doesn't seem to work, for instance, the handleClick…

mikuya707
- 123
- 8
1
vote
1 answer
gulp browserify + reactify not creating bundle
When I run gulp I get an "updating!" and "updated!" log after saving main.js but there's no bundle ever built
gulpfile.js:
var watchify = require('watchify');
var reactify = require('reactify');
var concat = require('gulp-concat');
var util =…

user3417966
- 81
- 1
- 10
1
vote
1 answer
Is it necessary to install `node-jsx` if we use reactify
In my Nodejs application, I use React. I browserify + reactify to transform .jsx files to js files.
I use this line of code in my entry js file :
require('node-jsx').install();
I noticed that node-jsx is deprecated. Do I still need to have this…

Arian
- 7,397
- 21
- 89
- 177
1
vote
2 answers
Browserify transform with reactify
I am trying to build a project using gulp. Unfortunately I am experiencing some trouble with it.
This is what my gulpfile.js looks like:
'use strict';
var watchify = require('watchify');
var browserify = require('browserify');
var gulp =…

Mayas
- 1,434
- 5
- 16
- 25
0
votes
0 answers
JSON bundled with JS Unexpected SyntaxError
I have a python script that ingests a .txt file and outputs a JSON file. I use linter to ensure that the format of my JSON file is accurate. After, I run my JSON file through this line in terminal:
browserify -g reactify ./directory.js -o…

hibiscushooligan
- 9
- 4
0
votes
1 answer
Reactify Django or separated frontend and backend
I would like to know why sould reactify Django or why should we use separated django backend and react frontend.
which implementation is more scalelable
I hope you could help me ;)

Raj Kumar
- 23
- 3
0
votes
1 answer
ReactJs in Django return
I am new to Reactify Django. Actually, i am trying to have React JS to be rendered instead of HTML page. I have following:
views.py
from django.shortcuts import render
def home(request):
return render (request,…

r_batra
- 400
- 3
- 14
0
votes
1 answer
Custom Search box for React Datatables
I have a Datatable set up like the default shown here. I want to have the search bar to filter the data detached from where it is and have it sitting somewhere completely different. So I want to have my own input field used to search the data in the…

MomasVII
- 4,641
- 5
- 35
- 52