React Boilerplate - A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.
Questions tagged [react-boilerplate]
219 questions
1
vote
0 answers
How to automatically clear cache on user's already loaded website whenever a new build is generated?
I am using this react boilerplate code - https://github.com/react-boilerplate/react-boilerplate and webpack - https://webpack.js.org/configuration/
The problem I am facing is whenever I am doing npm run build and pushing the build folder to prod,…

anoniket
- 271
- 1
- 2
- 11
1
vote
1 answer
React boilerplate page is reloading on route
I am using react boilerplate for my app and it is behaving very strange.
I have multiple pages and some pages are working fine and on some pages my app is reloading means its refresh the page.
E.g on
www.myapp.com/login its working fine as a…

Qubaish Bhatti
- 700
- 5
- 22
1
vote
1 answer
Cant resolve fs, net, tls after mysql installation
I have react-boilerplate application. I want to start using database so I installed:
npm install mysql
npm install mysqljs/mysql
As shown in mysql webpage: https://www.npmjs.com/package/mysql
Now I get errors when I go to localhost in a…

vytaute
- 1,260
- 4
- 16
- 36
1
vote
0 answers
ERROR in ./node_modules/imagemagick/imagemagick.js Module not found: Error: Can't resolve 'child_process'
I'm trying to start an application built with react boilerplate and cordova and after doing npm install the application it breaks in this point:
Building the Webpack DLL...
Hash: e9530f471c1146cf2a47
Version: webpack 3.5.5
Time: 4218ms
…

Danielo
- 164
- 1
- 15
1
vote
1 answer
Exclude urls from service-worker using webpack offline-plugin
i’m currently setting up 2 apps on the same domain using AWS Cloudfront to manage routes between the apps. One of the 2 apps is a React app, based on React-Boilerplate and using offline-plugin to setup service workers. By default, routes of the…

Théo
- 13
- 7
1
vote
0 answers
Uncaught Error: Cannot find module "history/lib/DOMStateStorage"
I am trying to run a react project on local but I get this error on the console:
Uncaught Error: Cannot find module "history/lib/DOMStateStorage"
at webpackMissingModule (StateStorage.js:5)
any idea, to solve it?

Borealis
- 1,059
- 2
- 18
- 37
1
vote
1 answer
Slow update of the Draft.js / react-draft-wysiwyg DOM when content change
I'm using react-draft-wysiwyg wrapper for Draft.js.
On the page I have multiple instances of the Editor component.
I have problem with slowly/laggy update of the Editor UI (onChange event handler).
Maybe this is some hint Im getting a lot of…

Space
- 178
- 2
- 10
1
vote
1 answer
React/NPM not obeying env variables during build
I am setting the Environment in a constants file like so
const ENVIRONMENT = process.env.NODE_ENV;
const ENV_VARIABLES = {
production: {
API_URL: 'https://prod.myapi.com',
},
development: {
API_URL: 'https://dev.myapi.com',
},
…

Franco
- 2,846
- 7
- 35
- 54
1
vote
0 answers
InvalidOperationException: Unable to resolve service for type 'Boilerplate.Web.App.Models.DevOnBoardTaskContext' while attempting to activate ~
I am working on Boilerplate.web.app template to create basic CRUD application.
I am using DB first approach. So, first I created the database, then cloned https://github.com/ParvezMirani/Boilerplate.Web.App in Visual Studio 2017, installed npm…

Ribu
- 101
- 3
- 8
1
vote
1 answer
How to undo the 'npm run clean' script?
In react-boilerplate I ran the 'clean' command and deleted all of my work accidentally before committing to git.
I thought this would only delete the react-boilerplate related files that were unnecessary. How do I get these files back?

qdog
- 151
- 1
- 9
1
vote
0 answers
Gatsby wtih react-boilerplate
I have React application built using react-boilerplate as a base. I am now looking to add a /blog route which is statically delivered using Gatsby. I tried to look at how I would be able to do this, but cant see how react-router can potentially…

Raghu
- 51
- 1
- 4
1
vote
1 answer
updating function called by updateIn() returns an immutable object instead of value
We have a react-boilerplate setup, which uses ImmutableJS, Jest and Enzyme as part of its framework.
We have come across an issue when testing reducer using ImmutableJS's updateIn().
The page works OK, but we are unable to test it, as in reducer…

Andrew Redican
- 21
- 1
- 7
1
vote
2 answers
Remove server from react-boilerplate
How should one do to remove server folder from react-boilerplate? Question is also asked here by another person https://github.com/react-boilerplate/react-boilerplate/issues/2110.

user1665355
- 3,324
- 8
- 44
- 84
1
vote
2 answers
How to subscribe to a Redux action in a React component
I'm trying to figure out how I could subscribe to a Redux action in a React component.
I didn't find anything on Google so I'm opening an issue here to see if someone can help me out.
When an user tries to log in I dispatch an loginRequestAction()…

Alfonso
- 1,125
- 1
- 13
- 23
1
vote
1 answer
How to add external JS on index.html in React boilerplate?
I am new in React JS. I have started with React Boilerplate.
I have a js file and want to use that file globally, so whenever I was trying to add a js file with script tag in index.html, it throwing an…

Pritam
- 68
- 7