Questions tagged [vite-reactjs]

20 questions
4
votes
1 answer

How to set multiple aliases in vite react?

Vite by default does not support src alias like import counterReducer from "@src/pages/counter/counter.slice"; Every time you will have to pass the full relative path like this import counterReducer from…
shekhardtu
  • 4,335
  • 7
  • 27
  • 34
2
votes
1 answer

React Vite Typescript version 5 can't use new decorators

I created new React Typescript app using vite I executed npm create vite@latest then selected typescript-swc Typescript version in package.json is ^5.0.2 The version in node_modules/typescript/package.json is 5.1.3 My global version is 5.1.3 I…
Oktay Yuzcan
  • 2,097
  • 1
  • 6
  • 15
2
votes
0 answers

Tailwind autocomplete in WebStorm not working even after the config file for Tailwind 3.3.2 using with Vite-react4.3.2 and three.js

In Settings/Preferences | Languages & Framework | Style sheets the IDE is not showing Tailwind as an option. It shows no documentation on Ctrl + Q. I'm using Tailwind with Vite, React and three.js. No Tailwind option: And here is the dependencies…
2
votes
3 answers

How to add Environment Variables in vite.config.js for a React Project

How can I add Environment Variables in Vite React Project in the vite.config.js file I wanted to add the proxy_url in the .env file and add it to the environment when deploying. Please have a look below! import { defineConfig } from "vite"; import…
1
vote
0 answers

Hot Reload not working in my PC, (vite React, CRA, live server) but none of them work

i have tried all technologies that use hot reload (vite React, CRA, live server) but none of them work. I also compared it with my other laptop, with all browser settings in sync, but it still doesn't work, I think the problem is with my PC the…
1
vote
0 answers

Making http requests from my Vite+React container to another Node.js+Express container

I am using Docker Compose and Dockerfiles for the container builds and I have a problem with http requests which are not being made correctly from my Vite+React app that is in my 'frontend' container, the console shows 'Error Network'. This is my…
Sebas
  • 11
  • 2
1
vote
1 answer
0
votes
0 answers

Websockets connection architecture with Vite React App

I'm starting to build a Vite React application that needs to use Websockets and I was wondering about the architecture of these connections. For a better explanation, the application contains a HomeView - from this view, the user can access 6 other…
0
votes
0 answers

Vite + React: Maximum call stack size exceeded

I was building website with vite + react However, when trying to compile the production build, I run in the following error: error during build: RangeError: Maximum call stack size exceeded at String.substring () at replaceClose
ETHIO CODE
  • 151
  • 1
  • 3
0
votes
0 answers

How to migrate to Vite from Create-React-App?

I am trying to migrate from CRA to Vite. I cloned the project from GitHub I removed 'react-scripts' from both 'scripts' and 'dependencies' section from package.json I ran this command: yarn add vite @vitejs/plugin-react-refresh vite-plugin-svgr I…
0
votes
0 answers

Vite is not compiling my dynamic imports using vite-plugin-dynamic-import | JSX files

vite-plugin-dynamic-import is not working for JSX Files. component: import(./pages${route}.js), It working with .js extension but not working with.jsx Please help me, i have been stuck here for 2 days. Thanks in advance!
0
votes
0 answers

Vite+react app shows blank screen. What to do?

I was following a tutorial of react. I followed all the requirements except I used vite+reactjs instead of reactjs. Now when I run the vite app it shows blank. But I followed everything accordingly. Here is the github link REPOLINK Please help me…
0
votes
0 answers

how to use vite react app in vue js 2 app?

it's my vue.config.js file it's my webpack.config.js file I have tried this and getting error,i have also added configs in webpack.config.js but it's not working (https://i.stack.imgur.com/oJQcu.png) i have tried both vue config's and webpack…
0
votes
0 answers

npm run div gives error in my nextjs project

osama@DESKTOP-02L572R MINGW64 /c/laragon/www/tojjar/frontend (osama-newTask) $ npm run dev tojjar@0.1.0 dev next dev npm ERR! Cannot read properties of undefined (reading 'stdin') npm ERR! A complete log of this run can be found in:…
osama
  • 81
  • 1
  • 3
0
votes
0 answers

How can I keep running Vite React App on AWS Lightsail production environment?

How can I keep running Vite React App on AWS Lightsail production environment? I have deployed my app on lightsail. When I give command "npm run preview. It runs on given IP and connected domain. but when SSH connected terminal is closed, It shows…
1
2