5,895 questions
1
vote
0
answers
59
views
Module federation problem, host build with Vite and remote build with CRA
How can I setup a module federation for my project, I have a React Vite app as host and CRA remote app. Do you know an easy setup, do I need to use craco in remote ?
I installed craco, and had this is ...
0
votes
0
answers
94
views
Can't get Overmind DevTools to connect
I have Overmind installed for React with DevTools:
// package.json
{
...
"dependencies": {
...
"overmind": "^28.0.4",
"overmind-devtools": "...
0
votes
0
answers
20
views
What is the correct way to (static) deploy a React App using Tomcat 9?
I'm getting a blank page on every route in my app, not sure if it's the Router config issue or Tomcat config issue. Console does show all resources and built scripts, as well as the app title but the ...
0
votes
0
answers
42
views
How can I connect my MongoDB database to my ReactApp?
I wrote a basic program to connect my MongoDB database to my React App:
import { MongoClient } from 'mongodb';
import * as dotenv from 'dotenv';
dotenv.config({ path: "./config.env" });
...
0
votes
0
answers
158
views
Migrated from CRA to Vite, Tailwind CSS error: "Cannot apply unknown utility class: sm:text-lg"
I recently migrated my project from Create React App (CRA) to Vite, and I’m running into an issue with Tailwind CSS. After making all the changes for the migration, I’m getting the following error:
...
0
votes
0
answers
136
views
React Hooks (useState, useContext) not working when importing Vite-built redesign modules into CRA project
I'm working on updating a large React application ("webapp-front-end") by creating a new module-based redesign. The idea is to gradually migrate and refactor the UI using TypeScript. The new ...
0
votes
1
answer
43
views
React Module Not Found: Unable to Resolve 'App'
As a newcomer to the industry, I just want to share my experience today. I encountered a compilation issue when I create a new react app (react 18). During the build process, I ran into the following ...
0
votes
0
answers
65
views
What is the right replacement for the "sheetjs-style" plugin in VITE
Uncaught ReferenceError: QUOTE is not defined
at sheetjs-style.js?v=1e400571:33200:15
at make_xlsx_lib (sheetjs-style.js?v=1e400571:33228:8)
at node_modules/sheetjs-style/xlsx.js (sheetjs-...
1
vote
3
answers
3k
views
Trying to do a React tutorial and getting ERESOLVE "unable to resolve dependency tree"
I'm trying to learn React and npm. I'm starting the tutorial here: https://react.dev/learn/tutorial-tic-tac-toe . It also gives the setup to follow if setting up on your own laptop.
package.json :
{
...
0
votes
0
answers
48
views
React app build not applying some CSS declarations
There is an issue with the CSS not being applied after the project is built. Locally the CSS displays correctly, using npm run start. Building and serving locally using npm run build and npm serve ...
0
votes
1
answer
981
views
React version 19 error : Hydration failed because the server rendered HTML didn't match the client
I am new to React.js and got a setup of react application through:
npx create-next-app@latest projectname
After taking some minutes, setup completed with error:
I tried to research this error but ...
4
votes
1
answer
313
views
Unable to Integrate Micro-Frontend with VITE (Remote) and CRA (Host) - Issues with Setup
In our organization, we have successfully built and integrated multiple micro-frontends using Create React App (CRA) combined with react-app-rewired. However, we recently tried to integrate a new ...
0
votes
1
answer
208
views
Error in nodejs and npm while writing files
This error is halting my progress since last week... I've tried AI, Google search, Github, asking experienced people, nothing works.
So I'm just a starter in react and nodejs. I was following Dr. ...
0
votes
0
answers
28
views
I'm doing mono repo setup for my existing react apps using yarn workspaces and CRA, but build code not converted to ES5 to support chrome 38
It seems after build my react app works well in chrome 38 version. But, after moving to mono repo structure, same code not working in chrome 38 after build and looks like some part for code I see not ...
9
votes
6
answers
7k
views
Error in creating new React app using create-react-app appname
Installing template dependencies using npm:
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: react@19....
0
votes
0
answers
21
views
How can I prevent index.d.ts from showing when I command-click on my custom react component in VSCode
I am having an issue when I want to view a react component's definition and occurrences in my create-react-app project in VSCode. It keeps showing the index.d.ts file (node_modules/@types/react/ts5.0/...
1
vote
1
answer
141
views
CRA/webpack production error: t[s] is not a function
I'm getting this strange error in a React CRA app in production builds only:
bootstrap:19 Uncaught TypeError: t[s] is not a function
at i (bootstrap:19:22)
at Game.ts:142:3
at index.tsx:19:...
0
votes
0
answers
75
views
Cloudflare not reaching EC2 with https, can access through IPv4 just fine
I have a React app using create-react-app running on an EC2 and I configured my Cloudflare domain to point to it, everything was working fine - I can access the app both through the IPv4 and through ...
1
vote
1
answer
50
views
ComponentWillUnmount method is never called
I'm developing a simple react app with the following pages:
export default class App extends Component {
...
render() {
return (
<Router>
<Navbar... />
<...
95
votes
8
answers
106k
views
The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0
I was using create-react-app before and now I switched the same project to vite and everything working fine except I am getting a warning log as follows
Deprecation [legacy-js-api]: The legacy JS API ...
-1
votes
1
answer
67
views
How to fix the missing dependency warning when using useEffect React Hook
With React 18.3.1, I get this error when I attempt to prevent an infinite loop on a fetch request:
src\pages\ItemDetail.js
Line 16:8: React Hook useEffect has a missing dependency: 'id'.remove the ...
-1
votes
1
answer
514
views
How to solve "Cannot use import statement outside a module" when you cannot set module type in package.json? [closed]
I am working on a Create-React-App project (writing in normal JS (.jsx), not TypeScript for what it's worth).
I wanted to modify some of the build files (swap out some references to local files with ...
0
votes
1
answer
92
views
How to Use Preact Signals in a CRA Project
I've a Create React App project and I'm trying to use useSignal as per this docs, but the values of signals are not rendering. (Like x.value does not render).
I've run:
npm i @preact/signals-react
npm ...
-1
votes
1
answer
52
views
How to access a static JSON file from the server from a react app
I have a static JSON file in my apache server and I want my react application to access the static JSON file and show its content
The idea behind is I have a Terms and Condition page in my application ...
1
vote
0
answers
162
views
Dynamically Import & Parse JSON Files Within a URI `File` Scheme - Serverless Environment
This problem that I'm facing is very unique to me and I hope it may not be to you. Essentially, I am working on a React project built with CRA and it won't/can't be hosted on a server. The goal of the ...