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.

vite
2 votes
1 answer
336 views

Vite project builds locally but not in CI - Buffer issue

Locally, Vite builds just fine. However, in CI (which just runs the same script, npm run build), it fails. I get this error in CI: Error: "Buffer" is not exported by "__vite-browser-...
-3 votes
0 answers
13 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, ...
0 votes
0 answers
10 views

Configuring nginx to work with separately containerized frontend and backend

The problem is that I have a separately containerized frontend and backend for my full stack web app (vue3, node, express, vite, axios). When running locally without a container, I can connect the ...
0 votes
2 answers
1k views

vite.js Error: EBUSY: resource busy or locked while Dropbox app running

So I just started developing with vite.js for my react app. At first I couldn't figure out why whenever I tried to run in development mode I kept getting this error [vite] error while updating ...
0 votes
1 answer
131 views

Laravel: Vite auto-reload 10x slower than regular browser page refresh

I use Laravel with Vite plugin. When I make a change in my blade file, Vite causes an automatic page reload but it is very slow - takes about 3 sec (as shown in Laravel debug bar). When I just make ...
0 votes
0 answers
4 views

Exposing Global Variable In Vite

After hours of searching through the doc (Vite) I've realised there is no simple way to expose a global string variable accessible via window.MY_VARIABLE in the browser console. At least as I can see ...
0 votes
1 answer
8 views

Nuxt 3 HMR Module not reloading changes

I have nuxt 3 project and installed couple of packages . the hmr was working fine .. it just stopped suddenly no clue why . there's no errors in the console . the cmd shows the files are being updated ...
0 votes
0 answers
6 views

Web component library using Lit return Failed to resolve module specifier "lit"

I created a new web component library project based on : [email protected] [email protected] using Vite's library mode (see https://dev.to/receter/how-to-create-a-react-component-library-using-vites-library-mode-...
0 votes
2 answers
3k views

Property 'env' does not exist on type 'ImportMeta'.ts(2339)

Recently i begin a project using vue.js and vite, everything run normal when using npm run dev but when npm run build its keep give me error Property 'env' does not exist on type 'ImportMeta'.ts(2339) ...
1 vote
1 answer
23 views

Vite generate typings for shared packages in monorepo

I am restructuring a repo to a monorepo and creating some shared packages i.e. components, theming, test-utils etc. The repo was already using Vite so I have kept this and have introduced turborepo as ...
0 votes
1 answer
195 views

Cannot read properties of undefined (reading 'Vue') at initBackend, how can i solve this error?

I’m working on a Vue 3 application using Pinia for state management, and I’m encountering an issue where added messages are not rendering on the screen. Additionally, I’m getting a persistent error in ...
0 votes
0 answers
14 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* { ...
0 votes
0 answers
7 views

Codespaces Preview url doubled

I run a vue app in codespaces and when I start the preview server through vite the url in the browser bar is doubled: https://blabla-pxjcg97-3000.app.github.dev/https://blabla-pxjcg97.github.dev/ ...
0 votes
1 answer
18 views

web.config failed to rewrite index.html when a baseURL is added to sub directory in Vue 3 app with Vite

Currently working on a Vue 3 app which deployed using Azure web apps. When I deployed it to the root and used web.config it worked fine, But I need to add a Base URL. For that, I have added the ...
0 votes
1 answer
14 views

Cannot Import local module/file in Electron-vite (vue)

index.js(entry point of electron) import { connect } from "./MongoDB"; MongoDB.js module.exports = { connect,} error- > electron-vite dev vite v5.3.4 building SSR bundle for ...

15 30 50 per page
1
2 3 4 5
444