Skip to main content

All Questions

Tagged with
-3 votes
0 answers
15 views

React App 18 + Vite 5 + React Router Displaying White Screen of Death [closed]

everyone. I am building a progressive web app with React 18 which I scaffolded out with Vite 5. I am handling routing and linking using React Router. It worked fine in the beginning until recently, ...
Paul Mbingu's user avatar
0 votes
0 answers
15 views

How do I serve a React.js Vite app hosted on an Azure container instance over a custom route, where routing is managed by Caddy?

I want to serve my React app from a different route, so that I can keep all of my servers on the same container group. My Caddyfile looks like this: fqdn { handle_path /backend* { ...
Armaan Shah's user avatar
0 votes
0 answers
7 views

New Vite Project not installing node modules after "npm i"

I am in the process of creating a new react project with vite and whenever I run "npm i" inside the project the node modules and package lock are not created. I have vite and node installed ...
Ethan Gula's user avatar
0 votes
0 answers
21 views

TypeError: e.map is not a function and also showing html code in browser console after deploying

Getting this html code: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <link rel="icon" type="image/png" ...
Real Dewan's user avatar
0 votes
0 answers
27 views

TailwindCss has different colors in Dist Build and run Dev

I need to help please, I have been building a project with tailwindCss and React, with Vite, but when I build my project then generate the dist carpet, but the colors are different when I run project ...
Sierpe's user avatar
  • 25
0 votes
0 answers
40 views

React: Expected “;” but found “:” with Vite and TypeScript

I’m encountering an error while using Vite with TypeScript and ESLint. The error message is as follows: ERROR: Expected ";" but found ":" [vite] Pre-transform error: Transform ...
ravivlb's user avatar
  • 199
0 votes
0 answers
22 views

How to Fix "Failed to Load Module Script" Error for React App Deployed on VPS with Nginx?

I'm a beginner trying to deploy my React application (static web pages) on a VPS using Nginx, and I'm running into a problem. After deploying, my app loads but doesn't display anything. The browser ...
Jeevons Eya-Jr-Iq's user avatar
0 votes
0 answers
42 views

Configure path alias with latest Vite project and React

I'm starting a project with React using latest Vite project template: npm create vite@latest my-app -- --template react-ts The template contains 3 tsconfig files. tsconfig.json { "files": ...
robb's user avatar
  • 83
0 votes
0 answers
9 views

How does a vite build product enable remote modules to use the same dependencies as local application modules?

I have an idea to use the same set of dependencies for remote components and the application's own components. The scenario is as follows: I have a main application A developed via vite+react , A is ...
pu xiao's user avatar
0 votes
0 answers
9 views

Why is my scss module file is removed after hmr in remix application after changing tsx file?

I'm new to remix and I'm trying to get css modules working, it looks like the css is removed from the html after a hot reload I seem to have a pretty basic setup for my application and at the initial ...
Denny's user avatar
  • 1,783
-1 votes
0 answers
18 views

Accessing information from a redux store in the main app from a dynamically loaded React Module? [closed]

I am using React (18.2) built with Vite (5.0.0) using vite-plugin-federation (1.3.5) to split up my application into a main application and several modules which are dynamically loaded once a user ...
Christofer Dutz's user avatar
0 votes
1 answer
37 views

Getting 401 Unauthorized Error on Login in React Web App

Whenever I click the login button of my web page built with vite-react(frontend:5173), express(server 5000, to handle cookies httpOnly) and Django(backend:8080). the console logs an error of (GET http:...
winterchillz's user avatar
0 votes
0 answers
12 views

NextJS 14 App Page Freezing UI using own custom developed NPM Packages in ReactJS using ViteJS

I have nextjs 14 app using mui, I have created my own npm packages for it's components in reactjs using vitejs, that is running perfectly fine. Problem: The issue I'm facing is that when i open ...
Muhammad Hussnain's user avatar
0 votes
0 answers
17 views

React vite build takes big size

I'm cereating a design system aka component library with react typescript and vite as build tool I had an issue that whenever I Import any component it was importing all the package not only the ...
xerka's user avatar
  • 23
0 votes
0 answers
10 views

undefined when use the env react with vite

i use react with vite and i want to use an env variable in my project. but i got undefined everytime i call the env variable. i have follow the documentation of vite and try a many solutions in ...
Farhan Muhammad's user avatar

15 30 50 per page
1
2 3 4 5
158