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.
6,662
questions
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 ...
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 ...
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&...
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 ...
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 ...
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 ...
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": ...
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 ...
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 ...
-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 ...
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:...
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 ...
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 ...
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:
"...
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 ( ...