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,656
questions
-3
votes
0
answers
12
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
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
5
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
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/
...
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
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 ...
0
votes
0
answers
9
views
Empty page with 404 errors when deploying Vite + Vue app to gh-pages, despite config files
I am in the process of creating a to-do list in Vue.js 3 to learn it and decided to deploy it to gh-pages as it is partially usable already. I am a complete beginner in Vue, I have previously worked ...
0
votes
0
answers
13
views
the shacdn/ui install command not intepret @ correctly to /src
i want to ask and i need help with this
i tried to follow the documentations of the latest shacn/ui using vite
but when i ran this command npx shadcn-ui@latest init
it seems not installing components ...
0
votes
0
answers
7
views
New Vite Project not installing node modules after "npm i"
I am in the process of creating a new react project with vite and whenever I run "npm i" inside the project the node modules and package lock are not created. I have vite and node installed ...
0
votes
0
answers
20
views
TypeError: e.map is not a function and also showing html code in browser console after deploying
Getting this html code:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" ...
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
15
views
how to run vite on hostinger?
I recently uploaded my laravel project on hostinger.
Everything works fine apart from the vite.
How to configurate it to use npm and vite?
when I open the project I got this error:
Internal Server ...