All Questions
24
questions
59
votes
8
answers
20k
views
Using webpack aliases in mocha tests
I'm developing a web app at work in React/Redux/Webpack and am now starting to integrate testing with Mocha.
I followed the instructions for writing tests in the Redux documentation, but now I have ...
27
votes
7
answers
26k
views
Why is React Webpack production build showing Blank page?
I'm building a react app, and at the moment webpack-dev-server works just fine( the hello world text shows up ), But webpack -p shows blank page. For the Production build The network tab under chrome ...
18
votes
1
answer
29k
views
You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux
I've created a basic app and deployed it for production. After running webpack -p and starting the server, I am now getting this console log error:
You are currently using minified code outside of ...
17
votes
4
answers
32k
views
ReactJS APP in Heroku "Invalid Host header" HOST configuration?
I am trying to put my React app on the Heroku. The whole project include one API (express) and one client (ReactJS). I have put my API on heroku. But when I put my client on Heroku, it shows build ...
12
votes
2
answers
11k
views
Minified code outside of NODE_ENV === 'production'. This means slower development build of Redux
So this is the full error:
You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux.
I am using a 3rd party ...
8
votes
1
answer
4k
views
Getting an issue while integrating google-cloud with webpack
I am integrating the google-cloud npm package with my react application and i am using firebase.
Errors i am encountering -
WARNING in ./~/google-cloud/~/hash-stream-validation/index.js Module
...
2
votes
2
answers
2k
views
Adding react-hot-loader to ejected create-react-app
I am using the instructions from this commit to attempt to add react-hot-loader version 3 to create-react-app. (Scroll to bottom to see babel and webpack configs)
Edit: Changing 'webpack/hot/dev-...
24
votes
2
answers
38k
views
Syntax error in IE11 with Webpack, Babel and React
I'm getting a Syntax Error in my React + Redux project in Internet Explorer 11, but I have no idea why it's caused.
I'm using Webpack and Babel to compile it.
I tried using babel-polyfill and babel-...
14
votes
3
answers
7k
views
Error using component done with react,redux and react-redux and build with webpack in react application
I have done a component with a store using react, redux and react-redux.
bundling of the code is done with webpack.(please check the codes attached below)
when i wanted to use the webpack build ...
13
votes
5
answers
21k
views
How to implement Google API with React, Redux and Webpack
I'm trying to get google calendar events into my React Redux app.
I've tried using googleapis and google-auth-library but webpack is throwing errors because googleapis was built to run server side and ...
9
votes
1
answer
3k
views
Make Redux reducers and other non-components hot loadable
I'm having a tough time getting my reducers to be hot swapable.
I'm using Webpack and react-transform-hmr. With this, all of the CSS and the components are hot loaded when I save, but when I try and ...
7
votes
1
answer
3k
views
React.lazy not working in production mode
I have a react app running, and I wanted to add route based code-splitting using React.lazy to it.
Currently my code is,
import { PureComponent, cloneElement, Suspense, lazy } from 'react';
...
...
7
votes
2
answers
10k
views
Using webpack and react-router for lazyloading and code-splitting not loading
I'm working on moving my react v0.14+ redux v3.0 + react-router v1.0 codebase from client-side rendering to server-side rendering using webpack v1.12 to bundle and code-split into chunks to load ...
6
votes
2
answers
13k
views
React.createElement: type is invalid -- expected a string, but got: object
I've just upgraded to Webpack 2.2 today and have been reading through their guides, which are still a work in progress it seems.
I am having difficulties setting up my application to use webpack-dev-...
4
votes
3
answers
18k
views
Trying to push webpack to gh-pages
I try to push my app build with react/redux/webpack to gh-pages. But with everything I find on the web seen that the pages don't render. What I got from the console it's a error about github can't get ...