create-react-app Questions

4

Solved

I want to remove data-testid from the production build, so these attributes can't be found in the prod build Particularly in this case, I need something that works with .tsx files I know how to rem...
Ullund asked 25/2, 2023 at 2:27

4

Solved

As per this documentation I created a jsconfig.json file in my root directory in order to be able to import components using absolute paths in my React Application (which was set up using create-re...

2

I'm getting the following warning when trying to use @react-three/fiber and @react-three/drei in the same project. Steps to reproduce npx create-react-app reproduced-warning cd reproduced-warning ...
Separation asked 26/4, 2021 at 18:24

8

Solved

everytime when I run any npx command it gives me the same error. Except when I run: npx -v then it gives me the version: 9.2.0 here is the error: npm ERR! code ENOENT npm ERR! syscall lstat npm ERR...
Teishateixeira asked 5/1, 2023 at 12:46

2

I'm following a tutorial for creating a basic Chrome extension with Create-React-App (tutorial found here: https://medium.com/@gilfink/building-a-chrome-extension-using-react-c5bfe45aaf36) After...
Obstruent asked 25/5, 2019 at 5:41

3

Bootstrapped with create-react-app (v1.0.13). Whenever I update the source & redeploy users need to hard refresh to get the new content. I've included non-cache header in index.html: <meta...
Damicke asked 6/9, 2017 at 16:28

0

I have ReactJs app with .env file like this: REACT_APP_SERVER_URL="URL1" Then I using Dockerfile to build to Image: # Fetching the latest node image on apline linux FROM node:22 AS builde...

6

I have followed the guide here: https://redux-observable.js.org/docs/basics/SettingUpTheMiddleware.html (Section: Redux DevTools) The store is configured in the following manner: // @flow import...

4

in my CRA project each single time I ran it I faced this error in my console. I think it is due to typescript server. Is there a way to solve it ? 99% done plugins webpack-hot-middlewarewebpack bui...
Otiose asked 28/6, 2022 at 10:42

3

I am using NodeJs + React in my application. I am using express in NodeJs. I created my sample app using 'create-react-app' npm. I used NodeJs for calling the oauth token from react app. I mentio...
Bisector asked 6/2, 2018 at 3:16

4

Solved

I have a built using create-react-app and hosted in netlify. In this link it is mentioned that I need to write redirect rules for SPAs. /* /index.html 200 But redirecting to index.html is not ...
Eliathas asked 5/5, 2019 at 9:17

12

Solved

I just started coding in React using create-react-app. In the documentation it's said The page will reload if you make edits. I don't know which module is responsible for auto reload (webpack...
Gonium asked 12/2, 2017 at 15:40

2

Solved

I'm trying to serve a react-app's build folder from a DigitalOcean droplet. After I run yarn build, I get told by the script to run yarn global add serve serve -s build However, when I run se...
Dendrite asked 7/10, 2018 at 20:42

15

Solved

I am developing a React app in VS Code. I used create-react-app for setup. I can run the project without any problem with npm start. When I tried to publish the project with Vercel I got errors: Al...
Undeniable asked 28/3, 2021 at 11:28

27

When I was trying to create a new react app using npx create-react-app example_app, I get this error [Your cache folder contains root-owned files, due to a bug in previous versions of npm whic...
Eckmann asked 21/12, 2019 at 16:15

9

Solved

In development, I want to be able to see the build information (git commit hash, author, last commit message, etc) from the web. I have tried: use child_process to execute a git command line, and...
Hardpressed asked 22/1, 2018 at 23:30

5

Solved

So I'm using Jest, Typescript and Create-react-app I have this test: import { defaultHeaders } from './http'; describe('http tests', () => { test('defaultHeaders()', () => { const headers ...
Facing asked 11/9, 2020 at 20:18

9

How do I console.log() from dependencies in node_modules in my node project? I'm using the default create-react-app setup. When I include console.log() in my application code, logging works fine. ...
Kanter asked 10/12, 2018 at 15:26

10

Solved

I'm trying to write tests for a react component I've built that utilizes navigator.geolocation.getCurrentPosition() within a method like so (rough example of my component): class App extends Compo...
Trevino asked 24/3, 2017 at 20:51

6

Solved

After running 'npm update' on my app, I am suddenly getting the following error: Compiled with problems: ERROR in ./node_modules/pako/lib/zlib/trees.js 257:106 Module parse failed: Unexpect...
Gilliangilliard asked 4/11, 2022 at 23:10

4

I have created a vanilla create-react-app using the Typescript template. I have added the line: <dialog inert></dialog> And the app won't even run because typescript is throwing an err...
Phonic asked 22/6, 2022 at 18:35

9

Solved

My steps are: npm run build Then "homepage": "https://parthaaaaa.github.io/firstwebapp/", "predeploy": "npm run build", "deploy": "gh-pages ...
Overvalue asked 29/1, 2019 at 18:48

10

I am new to React. Whenever I use npx create-react-app, it takes too long to download all the packages like "react, react-dom and react-scripts". Is it what happens every time or is there...
Dimitrovo asked 10/10, 2020 at 5:57

4

Solved

We are currently working on a tiny app which just renders an external React component (external since it's npm installed). The purpose of this app is to just fetch some JSON configuration and pass ...
Secant asked 21/2, 2022 at 14:9

5

I have the following installed on my windows machine: Node : v12.18.4 yarn : 1.19.1 create-react-app: 3.4.1 I navigated to the folder c:\temp and then tried to create react app using the following ...
Enjoin asked 29/9, 2020 at 18:29

© 2022 - 2024 — McMap. All rights reserved.