Questions tagged [vite-reactjs]

20 questions
0
votes
0 answers

Vite+React js Multiple webpage site deployment issue

I have a vite+react.js multi-page website. It can easily access the other pages developed as jsx components in development. As an example, if I try to access localhost/about-us it works perfectly. But when it comes to the build version, I cant…
0
votes
0 answers

Render a colours array and return it in a div gives the error Object literal may only specify known properties

So I created a simple slideshow where I want to return a div in the given color from the array here. But the style={{ item }} in my div after map returns the error: Type '{ item: string; }' is not assignable to type 'Properties
user21288868
0
votes
0 answers

In Vite Res.Cookie is Not Working. Respons is comming perfectly

In Vite res.cookie is not set the cookie I don't know why. in this code I am send cookie in res but it is not set in cooke with Vite react This is fetching the login URL console.log of line no. 31 in the image In network res showing Set-Cookie:…
0
votes
1 answer

Vite + React not rendering

i'm having a very confusing issue with vite + react, i initialized a new template via npm create vite@latest but the issue is when i start the dev server after all process it does start at localhost, it does show the html file with title Vite +…
0
votes
0 answers

Qiankun for multiple environments

I'm trying to build a micro-frontend app with Qiankun. I'm using create-react-app as main-app and vite-react as sub-app. It was working fine locally. The main-app is running on port 8080 and child-app on 8083. But when I test it on docker, I'm…
1
2