Skip to main content

All Questions

Tagged with
0 votes
0 answers
9 views

Is it possible to create a hidden tab on a browser?

I'm creating an SPA in Vue3 that requires a WebSocket to be open at all times to access database variables to the Client. I was wondering, maybe I could hide a WebSocket connection inside an invisible ...
Josh's user avatar
  • 23
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
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
19 views

how to actually implement a serverless function on Vercel for Vite code for production environment?

My code works perfectly fine using Vercel Dev, and a Postman request to the API route, but still, it says "Error: Error: Failed to fetch response." I think the error may be a wrong fetch ...
user26354078's user avatar
0 votes
1 answer
32 views

How to implement 3rd party data fetches in Vite + Vue web-application?

I want to use 3rd party function (actually, it is mine, but written in different time and different file), which requests data via fetch function. In my Vue + Vite application I import that function ...
Sancho Pansa's user avatar
0 votes
0 answers
23 views

React Vite Error on Production Build: "jsxs" is not exported by "node_modules/react/jsx-runtime.js

I am using React + Javascript + Vite for the project. I installed the required packages for the project , Also i install one package from local npm installation eg npm install source_folder The ...
Sooraj Jose's user avatar
-1 votes
0 answers
47 views

How do I make an axios request to a backend API in a React/Vite application?

I am using Nginx to serve static files generated from a React/Vite codebase. These static files are served on port 80. (Or 443 if using https.) What I don't fully understand is how to make requests to ...
FreelanceConsultant's user avatar
-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 ...
alinkbetweencodes's user avatar
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 ...
ConfuedProblemSolver's user avatar
-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 ...
Sam's user avatar
  • 29
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 // ........ ...
Donut's user avatar
  • 63
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 = ...
adamdaly's user avatar
  • 363
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 ...
U005_Aryann Dwivedi's user avatar
0 votes
0 answers
28 views

MIME type errors while importing SimpleLightbox inside module type script

I use Vite bundler. I have a script that imports SimpleLightbox (installed with 'npm i simplelightbox') and its CSS, and at this point I get an invalid MIME type error. When I run the server through '...
Yuump42's user avatar
0 votes
1 answer
42 views

RollupError: Module format "umd" does not support top-level await. Use the "es" or "system" output formats rather

RollupError: Module format "umd" does not support top-level await. Use the "es" or "system" output formats rather. I can't figure out what to do. I'm trying to build my ...
Kemal Güneş's user avatar

15 30 50 per page
1
2 3 4 5
99