Skip to main content

Questions tagged [vite]

For questions about using Vite, a two-part build tool (dev server + build command) that aims to provide a faster and leaner development experience for modern web projects.

0 votes
0 answers
14 views

how to get vite to compile scss/sass

I have a scss file i need compiled into a css file to be included on a blade template. I have installed sass as a dependence. I have the scss file listed in the scss additional data. But during the ...
Michael LaPan'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
13 views

pathMapping in vs code debug is not working

I have the following as my launch.json file { "version": "0.2.0", "configurations": [ { "name":"Launch vite:dev", "request&...
Zachary Vander Klippe's user avatar
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
19 views

How to configure Dockerized Laravel Setup for Vite?

My goal is to Dockerize Laravel + Vite + React.js with Inertia.js for Development. I can get the app to run, but it has no Hot Module Replacement (HMR) and loads the pages like SSR pages and not ...
David's user avatar
  • 57
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
49 views

Deploying a MEVN stack app that uses 2 servers to Firebase [closed]

I want to know how I can deploy a MEVN stack app to Firebase. The problem is that I use two servers - one for the BE and one for the FE. In my package.json they are configured as follows: "...
Yavor's user avatar
  • 151
1 vote
0 answers
19 views

how to resolve localhost not secure problem with vite?

I'm working on a personal project developed with react + tailwind + vite. in my sign-up component, I need to POST some information from the client side ( localhost:5173 ) to the server side ( ...
sorooshdp's user avatar

15 30 50 per page