create-react-app is a starter-kit for creating React applications with no build configuration. If you’re getting started with React, use this to automate the build of your application. There isn't any configuration file, and react-scripts is the only extra build dependency in your package.json file. Your environment will have everything you need to build a modern React application.
Questions tagged [create-react-app]
5893 questions
3
votes
0 answers
Deploy frontend and backend app to Heroku
I tried to deploy my app to Heroku, but it is not working correctly. (using create-react-app for frontend and node.js in the backend)
My full app structure looks like this:
my-app
|
| ____ backend
| └── ...
| ____ frontend
└── ...
In the…

עדי ביננבאום
- 61
- 1
- 1
- 6
3
votes
0 answers
precommit asks for jest test when commiting
I am using precommit hook and husky in my project where I want to check the eslint and stylelint and prettify the code. I do not want to do any test in my application so there wont be any test related work. However, I am getting the following issue…

milan
- 2,409
- 2
- 34
- 71
3
votes
2 answers
Any way to avoid fsevents warnings?
Trying to get into react, using npm and such, and I often get these types of warnings:
> npm install axios redux react-redux redux-thunk react-router-dom validator redux-form
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8…

Svish
- 152,914
- 173
- 462
- 620
3
votes
0 answers
Source map not loading when development server is using HTTPS and localhost
I have a development server on HTTPS using a self signed certificate for locahost. App is build using create-react-app and I am starting up the dev server set HTTPS=true&&react-scripts start. Source maps are not loaded in Chrome's developer…

Raj
- 4,405
- 13
- 59
- 74
3
votes
0 answers
How can I use react-notifications-component in all of my components of my create-react-app project?
I have a hard time understanding and using this component:
https://www.npmjs.com/package/react-notifications-component
I can get this plugin to work easily on my App.js file as I followed the examples, but i would like to have something like a…

Clx3
- 119
- 1
- 1
- 11
3
votes
0 answers
Local development of multiple react apps in a single folder
Right now there're 3 separate React apps created with create-react-app. I need to put them into one folder. It works fine when I do npm run build. The question is how can I configure webpack to be able to run local dev server for a specific app with…

Anton Gusar
- 513
- 1
- 3
- 14
3
votes
1 answer
How can I select all folders and subfolders any layers deep with custom file ending?
I made a React app using Create-React-App. I have a testing script in my React app's package.json like this:
"test": "node -r @babel/register -r @babel/polyfill **/*.test.js | tap-color",
This catches and executes the files in src/ like…

J. Hesters
- 13,117
- 31
- 133
- 249
3
votes
2 answers
I can curl another docker container inside docker compose but not fetch in code
I can't fetch from server container to frontend container even though I am able to get curl response from inside frontend container.
I have a docker-compose set up with a frontend and server container.
I want to fetch server response from…

Jørgen
- 352
- 2
- 12
3
votes
1 answer
How can I change the path/file name of index.html in React?
When building a React (with usual react-scripts/create-creact-app etc.) app via npm build, I always get the entry file in build/index.html.
I've tried moving the src into a subfolder, but the index.js is required to be there in src/index.js.
So how…

rugk
- 4,755
- 2
- 28
- 55
3
votes
4 answers
create-react-app only creates package.json file
I am trying to create react app using command create-react-app test.
This command only creates a project directory with package.json file.File containing...
{
"name": "test",
"version": "0.1.0",
"private": true
}
Node version 11.11.0 &
NPM…

Muhammad Muzamil
- 1,013
- 2
- 18
- 25
3
votes
0 answers
Redirect To Offline Page
I have a React app created by using create-react-app. By default, this tool creates a serviceWorker.js file for us and I am using this to register a service-worker. Furthermore, the documents suggest using google's workbox wizard to create a…

anderish
- 1,709
- 6
- 25
- 58
3
votes
1 answer
CRA variable replacement in public index.html
I understand the purpose of %PUBLIC_URL%, however I also understand and have observed that you cannot set PUBLIC_URL and have it replaced during a development (local) run. I have run into the following situation.
I have to reference a script…

Josh M.
- 26,437
- 24
- 119
- 200
3
votes
1 answer
test cafe + electron + create-react-app not loading bundle.js properly
I'm running into an issue where I cannot get testcafe to load properly. It starts the testcafe service and loads the index.html file but the bundle never loads so any DOM selection fails as it is not available.
because of create-react-app, we've got…

Caleb Swank
- 619
- 5
- 17
3
votes
0 answers
How to call something before React app refresh or reload by create-react-app
I'm developing a React app using create-react-app. The good thing is every time I save my changes, the app/page will automatically reload or refresh. The bad thing is my app locks some resources on the server, every auto reload will make those…

John Chain
- 658
- 4
- 9
3
votes
1 answer
Get more verbose output in React application using create-react-app
I have set up a project using create-react-app. Now I'm working on a different machine and all of a sudden I am getting the error in both npm run start and npm run build:
Creating an optimized production build...
Failed to…

Borre Mosch
- 4,404
- 2
- 19
- 28