Questions tagged [react-boilerplate]

React Boilerplate - A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.

219 questions
2
votes
1 answer

Uncaught TypeError: Object(...) is not a function at eval (global-styles.js)

I migrated my project from react boilerplate 3.5.0 to 3.7.0. The boilerplate structure changed a little, and I needed to update some dependencies, but finally webpack compiled with no errors. But here is the console of my browser: This is the…
assembler
  • 3,098
  • 12
  • 43
  • 84
2
votes
2 answers

React Boilerplate: Dumb components re-render when the data in

I have a used react-boilerplate to setup the base for my project. Consider I have a container and 2 components(dumb components) like below, App - HomePage(Connected component with sidebarData and detailedData) - SideBar(data=sidebarData) …
Kamalakannan J
  • 2,818
  • 3
  • 23
  • 51
2
votes
1 answer

Import a javascript file globally using webpack ProvidePlugin

I have a function to make network calls and i want that function to be globally available without me having to import it every time i need to use the function Request.js import 'whatwg-fetch'; /** * Parses the JSON returned by a network request …
2
votes
0 answers

Application error when deploying on heroku

I used react-boilerplate, to create app. It works fine on localhost. I push it on heroku to deploy it. Seems it deployed without any problem. But at the end I get an Application error.I tried delete node_modules, and npm install again, but it not…
2
votes
1 answer

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
2
votes
0 answers

Multiple Entry Point on Webpack by express js

I want to use multiple entry point of webpack using express js instances in react boilerplate for two different application with sharable codebase I have two html and two js files vendor.html for vendor.js and settings.html for settings.js. One…
2
votes
1 answer

Modify react-boilerplate to nest injected reducers under a single key of the store

react-boilerplate has a utility injectReducer that is used to allow a reducer to be asynchronously attached to the store, and in the reducers.js file for the entire application, createReducer spreads out these injectedReducers into the state so that…
tacos_tacos_tacos
  • 10,277
  • 11
  • 73
  • 126
2
votes
0 answers

Webpack Hot Reload Infinite Refresh in Chrome

I'm having a strange hot reloading issue that I think is related to my environment, but I can't track down what is. I was hoping someone else had run into it and could point me in the right direction. I've been banging my head on this one for a…
2
votes
1 answer

Deploying react-boilerplate to Google Cloud Platform or Firebase Cloud functions

Can anyone help me deploying react-boilerplate to Google Cloud Platform or Firebase Cloud functions. There are guides such as Firebase https://codeburst.io/next-js-on-cloud-functions-for-firebase-with-firebase-hosting-7911465298f2 Cloud…
2
votes
0 answers

Path to static files after packaging

Hello guys i have a question about this https://github.com/electron-userland/electron-packager electron packager, as i am understood correctly everything what i've made compiled to the asar archive, and the second thing in my case packager took the…
2
votes
1 answer

Why does React-boilerplate selector.js export methods which call createSelector instead of exporting selector directly?

I'm using react-boilerplate which in turn uses reselect. I've noticed their use of reselect is a bit different then how reselect is documented. In fact I would have thought that it was defeating the advantage of reselect if not for the fact that…
dsollen
  • 6,046
  • 6
  • 43
  • 84
2
votes
2 answers

reselect CreateStructuredSelector difference in properties

Maybe this is not necessarily a reselect question const makeSelectError = () => createSelector( selectGlobal, (globalState) => globalState.get('error') ); and in reselect we use const mapStateToProps = createStructuredSelector({ error:…
Maru
  • 41
  • 2
  • 7
2
votes
1 answer

How to add environment variables to package.json

I'm using React Boilerplate and had a .env separately at the root to denote whether my server was development, staging or production. However, I realized that for my setup, that was not the best route. Then I learned that in package.json there is a…
Martavis P.
  • 1,708
  • 2
  • 27
  • 45
2
votes
4 answers

I can't see month view in basic react-big-calendar

Hi I can't see month view even when it's displayed in react-dev tools. Week view works fine but month view doesn't displays anything. PFA the code below. Here is the week view image. Here is the month view image. import localizer from…
2
votes
2 answers

How to add custom javascript (3rd Party library) to react-boilerplate

I'm using react-boilerplate to build react app. But could not get my head around on adding custom javascript file to application which do not come from npm, yarn or bower. Basically I'm trying to use some jquery component. I added jquery using yarn…
Vinit Yadav
  • 51
  • 1
  • 4