All Questions
229
questions
5
votes
1
answer
20k
views
Redux Web Extension - Uncaught TypeError: Invalid attempt to spread non-iterable instance
I am working on a React application that also uses the Redux dev tools extension. It is running on Node and used Webpack to compile. I recently upgraded my application to Webpack 4 from 2.
The ...
0
votes
1
answer
2k
views
Hiding secret key in webpack bundle.js from redux-persist-transform-encrypt
I am using redux-persist in combination with redux-persist-transform-encrypt to encrypt my redux store in localstorage. So I implemented the encryption like so:
const encryptor = createEncryptor({
...
2
votes
1
answer
2k
views
Why does this React App initialize twice?
I've build a react app using webpack, react-router, redux, and redux-saga.
When I refresh the app initializes twice.
I'm using websockets to communicate with a go server and have a saga that is ...
0
votes
1
answer
39
views
webpack builds html but doesn't display any javascript
So i'm mostly new to javascript and current i'm having a problem displaying the fruits of our labor. We have a webpack build from our React/Redux and although it displays css it doesn't contain any ...
0
votes
1
answer
249
views
Webpack-hot-middleware/client module not found
So im getting this error in the terminal ERROR in multi ./client/src/index.js webpack-hot-middleware/client
Module not found
I am not sure why because in my project this file is there. I tried the npm ...
1
vote
1
answer
140
views
Unable to transpile decorators(Higher Order Components) via webpack/babelrc
Following are my configs:
Package.json:
"dependencies": {
"axios": "^0.18.0",
"babel-preset-env": "^1.7.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"node-sass": "^4.7.2",
...
0
votes
2
answers
2k
views
Webpack4|Redux|React Issue - You may need an appropriate loader to handle this file type
I am trying my hands on Webpack4/Redux/React and getting the following error for my sample application:
./src/index.js] 210 bytes {main} [built] [failed] [1 error]
+ 13 hidden modules
...
0
votes
1
answer
296
views
Build is successful with Heroku but an application error
Allow me to explain. I use Heroku for enabling my online application (React/Redux).
So, my build has been done correctly, but when I viewed the log I found this error:
at=error code=H10 desc="App ...
-1
votes
1
answer
158
views
Bundle.js file isn't getting generated by webpack for production build
I'm unable to generate the bundle.js file.
This is my webpack.config.js.
module.exports = {
entry: [
'./src/index.js'
],
output: {
path: __dirname,
publicPath: '/',
filename: '...
2
votes
1
answer
134
views
Sharable component in multiple react apps
What is the best way to develop two independent react apps by using sharble components ?
Ex. App1 and App2
App1 would conatains
index.html
app1.js
App2 would conatins
index.html
app2.js
0
votes
1
answer
49
views
using webpack to compile redux example todos,but exists error [duplicate]
This will exist error:ERROR in ./src/reducers/todos.js
Module build failed: SyntaxError: Unexpected token (15:13)
case 'TOGGLE_TODO':
return state.map(todo =>
(todo.id === action.id)
?...
0
votes
1
answer
42
views
Sign up not communicating with api properly with react-redux
I am trying to follow a thinkster tutorial that creates a medium clone. There are a variety of languages and frameworks you can choose to do this. I chose react's pathway. Things are starting to ...
0
votes
1
answer
376
views
Switch Webpack Entry point on switching to new Route
I have a running React Application containing two routes
"/app"
"/dashboard"
Also I have two entry points in webpack
entry: {
a: 'browser.app.jsx',
b: 'browser.dashboard.jsx'
}
I need to ...
10
votes
3
answers
13k
views
Routing doesn't work in react when typing url in browser
I have the following routes in the below class:
import { Router, Route } from 'react-router-dom';
class App extends React.Component {
constructor(props) {
super(props);
}
...
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 ...