create-react-app Questions
5
Solved
I'm trying to deploy a create-react-app to a relative path on GitHub pages with a custom domain. E.g. www.example.com/myproject
I'm using react-router-dom, react-router-redux and react-router-boot...
Thoughtless asked 5/9, 2017 at 13:37
26
Solved
I was wondering if anyone knows how to use https on dev for the 'create-react-app' environment. I can't see anything about that in the README or quick googling. I just want either the https://local...
Schipperke asked 15/6, 2017 at 18:23
2
I attempt to use react-player for my React project. I'm using Typescript. I received the following error when I build it:
'ReactPlayer' cannot be used as a JSX component.
Its instance type 'ReactPl...
Jurkoic asked 8/11, 2020 at 2:2
17
I am a noob using create-react-app to create a App, yarn start start the server at http://localhost:3000/, I can't visit this url on my mobile.
How can I make some configs to preview the app on my ...
Cimabue asked 18/8, 2017 at 15:38
35
Solved
After updating to CRA 5.0.0, I got this error on compilation process:
ERROR in Plugin "react" was conflicted between ".eslintrc.json" and "BaseConfig » "..\react-app\n...
Pembroke asked 22/12, 2021 at 13:18
16
I have installed Expo CLI globally and cant start a new react native app without using expo cli and therefore would like to uninstall it from my system. I have spent hours trying to work out how to...
Cornelie asked 24/9, 2018 at 9:21
7
I created a React App using npx create-react-app my_app but when I am running the app using npm start, I am getting the following error,
I tried installing the package '@babel/plugin-proposal-priv...
Aliquot asked 26/5, 2023 at 16:43
16
Solved
I know I've done it before but I can't seem to find the answer anywhere. I want to run create-react-app without creating a whole other folder within the folder I'm already in. I believe it is just ...
Gae asked 9/3, 2019 at 22:27
4
I need to run the server like I simply do with:
npm run start
but I need to use the production mode. Is this possible?
In ember or angular it is possible. How to do in create-react-app?
I tried...
Lyophilic asked 17/3, 2018 at 19:31
12
I have added TS to my React/Redux app.
I use window object in my app like this:
componentDidMount() {
let FB = window.FB;
}
TS throws an error:
TypeScript error: Property 'FB' does not exis...
Deflagrate asked 5/6, 2019 at 9:38
4
Solved
I'm must be missing something quite obvious, I have a react app that has a left div with multiple buttons, each one of them with different texts. I want to check if every one of those buttons was r...
Legitimist asked 15/11, 2020 at 13:11
17
Solved
Is there a way to add long press event in a React web application?
I have list of addresses. On long press on any address, I want to fire event to delete that address followed by a confirm box.
Fumed asked 1/1, 2018 at 10:39
27
Solved
I updated my project to create react app 4.0, and I'm slowing moving over my files to TypeScript. I know with this new version you don't have to repetitively import React from 'react'. However, wit...
Peccadillo asked 3/11, 2020 at 2:37
30
Solved
I am using create react app to bootstrap my app.
I have added two .env files .env.development and .env.production in the root.
My .env.development includes:
API_URL=http://localhost:3000/api
CAL...
Scurrility asked 22/1, 2018 at 9:30
9
Solved
I'm following the documentation for setting up Tailwind in a React project over on https://tailwindcss.com/docs/guides/create-react-app. I've been following the steps, but when I get to the part wh...
Adkison asked 7/12, 2020 at 9:43
5
I have created a site using CRA, If I run build it all works fine on Github-pages, but when I attempt to run the site through my Netlify account it shows up a blank page. It's connecting to the sit...
Chervil asked 14/9, 2020 at 21:10
3
Solved
I am trying to build react-create-app into one file (including JS, CSS, PNG, etc...).
It is possible and how?
Should I try to use rollup or it is possible using webpack?
I tested https://www.npm...
Orabelle asked 23/5, 2020 at 11:54
4
Solved
I have a React App using Create-React-App (react-scripts) and Material-UI. I would like to apply a strong Content-Security-Policy for my app which does not allow unsafe inline styles.
I would like...
Prorate asked 6/3, 2018 at 7:33
37
Solved
I am following a tutorial on React using create-react-app.
The application is created by create-react-app v1.3.0
create-react-app my-app
The dev server is run by
npm start
After changing the...
Crinkle asked 7/4, 2017 at 9:47
7
This question actually follows directly from my answer on a previous question.
I added a "homepage" to my package.json because it is a React app that I hosted on Github Pages. The output of npm ru...
Kerr asked 25/3, 2017 at 0:35
7
Solved
Background
I've been following more or less the official guide to setup a local dev environment with react and it seems to use create-react-app, which sets up really a lot.
Now, if I run npm run ...
Nullifidian asked 14/3, 2019 at 14:46
4
Solved
Background
I have to use a Content Security Policy for a react application.
The reason, that is however not of a big matter here, is, that I am creating a WebExtension/Browser Extension/add-on a...
Cogon asked 14/3, 2019 at 10:54
6
Solved
I've been working with a React project using create-react-app and I have two options to start the project:
First way:
npm run start with the definition at the package.json like this:
"start&qu...
Kings asked 6/6, 2018 at 13:48
19
Solved
I am trying all possible ways to create a React application. I have tried Maven, and now I am trying create-react-app from Facebook Incubators.
When I tried to run the command create-react-app my-a...
Ferdelance asked 25/8, 2017 at 15:25
17
I am following this brilliant post to learn react. However, some essential bits are missing.
When I open the app in the browser I get the error
./src/components/Navbar.js
Module not found: Can't r...
Begird asked 16/8, 2021 at 21:47
© 2022 - 2024 — McMap. All rights reserved.