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,658
questions
-1
votes
0
answers
24
views
How can I pass a ZIP file download from a backend Python app to a frontend React app?
I am currently designing a web app and part of it is supposed to download a ZIP file from an external API and pass it onto the end user. I've reviewed a ton of code surrounding how to download the ...
0
votes
0
answers
15
views
CROSS-origin cannot access API and fetch data
I have project using vite x reactjs. I think nothing wrong with my code, all is normal. but when i deploy to vercel, i cant get the data from api. before it, i fixed it using third party proxy https://...
-1
votes
0
answers
14
views
Laravel + Inertia application not loading Vite files on iPad
I am working on a Laravel + Inertia project and it's powered by Vite (as per the modern ecosystem). Now, I want to load my website on other devices connected on my home network (my phone, iPad, etc.)
...
0
votes
0
answers
36
views
Error (file is not a module) when importing Javascript file into Vite React Typescript project
A 3rd party has provided me with a minified Javascript file that I need to use in my React 18.3.1 + Typescript 5.4.5 + Vite 5.2.12 project. I need to import their file in one of my components and ...
0
votes
0
answers
28
views
SpaProxy not launching on local docker environment. npm start not working inside container
Launching the SPA proxy...
Error on Docker logs:
fail: Microsoft.AspNetCore.SpaProxy.SpaProxyLaunchManager[0]
Failed to launch the SPA development server 'npm run start'.
System.ComponentModel....
-1
votes
0
answers
17
views
How to setup vite multi-pages react SPA with nested routes on one of the pages?
Here is the vite config, the root index page is an static HTML with no javascript, and the app/index.htm is a react app:
import { defineConfig } from "vite";
import { resolve } from "...
-1
votes
0
answers
17
views
dApp on ICP doesn't launch with npm start
On my study dApp called dBank, I can't succeed to show the frontend on my browser. I dfx start & deployed the canister with dfx deploy.
This is the error message : ERR_CONNECTION_REFUSED on my ...
0
votes
0
answers
21
views
How can I use path aliases in a library in a way that aliases are resolved when used by library consumers?
I am building a vue storybook component library with vite called my-storybook. I configed it to resolve alias @ to /src.
// .storybook/main.js
module.exports = {
// other configs
// ........
...
1
vote
1
answer
170
views
VITE:Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type
I am seeing the following error in the browser when I launch my web page for production.
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of ...
0
votes
0
answers
17
views
Vite Fastify Stripe and Render Integration: 404 Error on /api/create-payment-intent Endpoint
I am integrating Stripe payment processing into my React application using Vite, Fastify, and Stripe. However, I am encountering a 404 error when trying to create a payment intent using the /api/...
0
votes
0
answers
16
views
Prevent Vite/RollUp from scoping globalThis
I'm using PDF.js and one of its classes is instantiated with:
class DOMCanvasFactory extends _base_factory_js__WEBPACK_IMPORTED_MODULE_0__.BaseCanvasFactory {
constructor({
ownerDocument = ...
0
votes
0
answers
18
views
React application not correctly "pathing" my image
I have a React application created using Vite. I am also using Styled Components. Everything works fine, except when I specify my background image, it is not creating a correct path.
As you can see, ...
0
votes
0
answers
48
views
Vite manifest not found Exception
My application was working normally until yesterday morning. Since this morning I have encountered this problem and unfortunately all my attempts to resolve it have yielded nothing.
My laravel version ...
0
votes
0
answers
37
views
How can I configure routes in a Vue.js application to handle query parameters?
What configurations are required in my routes to handle the query parameter userActivity for a URL like https://somesite.com/feedpool?userActivity=false?
I'm using Vite as a build tool, with the base ...
0
votes
0
answers
60
views
Getting a Failed to resolve import error even though I am mentioning the correct file path and have exported the variables
I am trying to make a chatting application using React with Vite and Firebase using Google authentication.
I created a firebase.js file to contain the firebase SDK and credentials, when I am importing ...