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
1 answer
Fetching from localhost server in Create React App during development vs fetching from deployment during production
This is a personal portfolio page that I'm implementing a contact form within, using nodemailer.
The nodemailer thing is all set from server side. I just need some advice on pointing the client post request to the right place in regards to…

DBN
- 125
- 1
- 10
3
votes
1 answer
Is there a way to migrate to CRA?
When i had create my project i didn't know abuot create-react-app, but it's really good tool to reduce time that i've spending on webpack support.
Is there a way to migrate whole project to CRA?

Leonardo Fetrilo
- 45
- 7
3
votes
1 answer
create-react-app: how to use https but with signed cert?
I've seen the quite useful answer here: create-react-app: how to use https instead of http?
BUT
I'm not sure of the details on how to get this to work with a properly signed SSL cert.
Which version/format of the cert should I be using? PEM, or…

Dycey
- 4,767
- 5
- 47
- 86
3
votes
1 answer
create-react-app + typescript does not use browserslist
create-react-app by default uses browserslist, but as I see it works only for *.js files (I'm not so sure), for *.ts no difference.
My env (generated by create-react-app):
webpack: ~4.29.6
react: ~16.12.0
typescript: ~3.7.2
Code of project…

mixalbl4
- 3,507
- 1
- 30
- 44
3
votes
0 answers
Jest Exit Status 1 during Azure Pipeline
I am currently running a create react app and writing unit tests with Jest and React Testing Library. I am running my unit tests with the following commands: npm test and npm run test:ci
All of my unit tests are passing successfully when running…

Nikita Pandya
- 61
- 4
3
votes
1 answer
Is it possible to proxy the html get request to /graphql from a create-react-app?
I have a create-react-app application in which I enabled the proxy by adding:
"proxy": "http://localhost:3001",
to my package.json. That's working well for API requests to /graphql, but when the web browser request /graphql (for the purpose of…

Pablo Fernandez
- 279,434
- 135
- 377
- 622
3
votes
2 answers
Create react app + React lazy + Absolute Imports
I have set up jsconfig.json as described in cra documentation.
[https://create-react-app.dev/docs/importing-a-component#absolute-imports][1]
{
"compilerOptions": {
"baseUrl": "src"
},
"include": ["src"]
}
It is working fine if write…

Tuhin
- 3,335
- 2
- 16
- 27
3
votes
3 answers
How to set up a chrome extension using React and TypeScript with multiple pages and entry points?
There are plenty of questions and tutorials on this topic, but none of them cover all use cases for a chrome extension, because most of them assume there's only one entry point.
Here are the requisites:
Multiple "single page applications":
1)…

M. M
- 520
- 1
- 5
- 9
3
votes
0 answers
Service Worker on Create React App doesn't load video on safari
I am trying to get my PWA working on Ipad and Safari but I'm messing with an issue with Safari and the Service worker that is automatically generated by "create React App".
I saw that is a common problem from what can read from this articles: one,…

s.zane
- 135
- 3
- 13
3
votes
1 answer
What is the way to set X-Frame options in react app
I've build a react app using create-react-app. But then I came to know that my react app is open for clickjacking attack as I didn't set any X-Frame options in my app. Now how can I set X-Frame options in my react app which is created my…

Vasu Ch
- 185
- 2
- 12
3
votes
0 answers
Using type-only imports/exports in an older CRA project - how do I update babel loaders?
I want to use the type-only import/export syntax in an existing project generated by an older version of CRA. I upgraded TypeScript to 3.9.3, but when I try to yarn start, I also upgraded babel via yarn upgrade Babel, but I get the following…

Michal Kurz
- 1,592
- 13
- 41
3
votes
1 answer
Why does using Tailwind with Create React App using npm-run-all cause an inital blank white screen?
I'm trying to incorporate tailwind into my react app. So I followed the steps outlined here https://daveceddia.com/tailwind-create-react-app/
When I start my application (freshly created demo app), it loads a blank white screen. After refreshing the…

visualbam
- 167
- 15
3
votes
0 answers
How to pass the i18n translation object from react-i18next in react-testing-library in conjuction with Redux?
I have an application that uses Redux and react-i18next for translating the string. I want to write a unit test that will interpolate the i18n object in a human-readable format so that I can test the string as 'Sign in with Google' instead of…

Vladimir Jovanović
- 5,143
- 5
- 21
- 42
3
votes
0 answers
How to use handlebars-loader in a Create React App project?
I'd like to import a Handlebars file as a template in my CRA project.
This is my current setup, adapted from React-App- Rewired won't add Babel Plugin, handlebars-loader, and customize-cra
config-overrides.js
const { override } =…

stuart
- 1,785
- 2
- 26
- 38
3
votes
2 answers
How to remove Create react app sample in production
I have a domain which is successfully deployed in production server.
But whenever I open it one Install app: Create React app sample is showing in address bar.
Is there any way to remove this.
What should i change in my code?
Any suggestion…

Tammy
- 1,122
- 5
- 19
- 50