All Questions
99
questions with no upvoted or accepted answers
7
votes
0
answers
1k
views
Decipher stack-trace in React production build with componentDidCatch
I'm using componentDidCatch to catch rendering errors in my app and made a component that prints stack trace provided by this hook.
However, in a production build, I see that component names are not ...
5
votes
0
answers
140
views
How to hot-reload JSX in React apps
I have used the CRA or (create-react-app) a lot while starting react. The hot reloading of CSS changes work and are awesome. Whereas hot-reloading of JSX and class functions don't work - if I change ...
5
votes
0
answers
5k
views
Uncaught TypeError: __webpack_require__.i(...) is not a function
I'm getting
script.js:11 Uncaught TypeError: __webpack_require__.i(...) is not a function
at Object.<anonymous> (http://localhost:8000/js/main.723b6bbbc5e319d89909.js:13057:107)
at ...
3
votes
0
answers
2k
views
Webpack - Loading chunk 0 or 1 failed for some users
There is a problem, and cannot find in any way the solution since for a long time directly I did not deal with the webpack setup.
Errors from users come from the portal where my widgets written on ...
3
votes
1
answer
945
views
Transfer electron app to cordova app
I have a working electron application that uses React, Redux and WebPack. My current task is to create a working mobile Cordova application from it. What are the main steps I should undertake? How to ...
3
votes
0
answers
527
views
React with Webpack - package a module for use in Dynamic loading in another site
I'm using Webpack as our build/bundler for an application using a standard React/Redux/etc.
We have a requirement to build out custom components that can be loaded dynamically into the main ...
3
votes
0
answers
2k
views
Uncaught ReferenceError: r is not defined - react redux webpack
I'm learning React with Redux and Webpack but I keep getting
Uncaught ReferenceError: r is not defined
It always stops at exactly this point in bundle.js:
_reactDom2.default.render(_react2....
2
votes
0
answers
1k
views
Webpack Uncaught Reference Error in the console of React Redux project
In my React Redux app, it just shows a white screen after running npm start. There is one error in the console-
Uncaught ReferenceError: Cannot access '__WEBPACK_DEFAULT_EXPORT__' before ...
2
votes
0
answers
151
views
Bundle NPM package that connects to applications store
I've been fighting with webpack and loosing for the last day and a half and I give up, please help!
So what I'm trying to do is create an NPM package that will be used in many of our sites. We have ...
2
votes
0
answers
172
views
Certain `import` statements return `undefined` where circular dependencies exist
I recently experienced a bug where some module exports started returning undefined where circular references / dependencies exist in my React/Redux/Webpack project.
My question is why did this happen?...
2
votes
0
answers
521
views
Hot reloader with create-react-app redux won't work
I have a react redux webapp, I startde with create-react-app, then slowly adapt redux. hot reloading don't reload the entire page and clear my state that's why I'm looking into implementing HMR,
I ...
2
votes
0
answers
2k
views
Default export works on the development site, but returns undefined in Storybook
So I'm building some component stubs for a new project I'm making. To see the visuals for these components I'm using Storybook. I have two separate webpack configs for the Storybook build and the ...
2
votes
0
answers
468
views
Unable to Import JSON data from local file using ES6 import in a React Redux Webpack App
I am trying to learn building a React + Redux application architecture using Web Pack 3 for bundling. I am trying to work with temporary JSON files for data sets and importing them into Service files ...
2
votes
0
answers
357
views
react-router with code splitting, replace() not working
I'm using react-router v3.0.2 with code splitting. I came up with the following issue:
I need to make a redirection if userRole url param is not passed, but replace() function not firing, with no ...
2
votes
1
answer
2k
views
Webpack large Bundle Size
I am facing issue due to large webpack bundle size.
The size of my bundle size is nearby 166 kb. I am running webpack with -p flag. Most of the size is due to bundling of react module in my bundle ...