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.

-1 votes
1 answer
14 views

Laravel custom helper function bug when attempting to alter navigation links to show the current active page in Laravel blade

When I pass my custom helper function as a variable to Laravel Blade, the bug occurs when I click a link to a new page. The error will read the variable was not found. There are a total of 6 ...
Mr. Daniels's user avatar
0 votes
0 answers
20 views

Laravel/Vite: Img in SCSS WILL NOT LOAD

Newbie here, an img called in scss will not load to pageview. headerLogo works fine but its called in blade not scss. using console it seems to be reading the image but wont post. im using app.scss ...
user26449122's user avatar
-1 votes
0 answers
11 views

Getting net::ERR_ABORTED 404 (Not Found) at http://localhost:5173/@vite/client in vite project

I have set up a Vite project for vuejs, following the quick start guide to learn the workflow of application development. However, upon launching the app on chrome (or any other browser for that ...
Amittras Pal's user avatar
-3 votes
1 answer
21 views

How do I configure Vite reverse proxy to test React application?

I am trying to configure a React + Vite application such that the frontend is able to talk to a backend webserver which is running on the same host at port 5555. I have tried to configure Vite to use ...
FreelanceConsultant's user avatar
0 votes
1 answer
18 views

What should my vercel.json config file to deploy my MERN stack given my current project folder organization?

I am trying to deploy my MERN stack on vercel but I can't get much documentation on what the vercel.config file should contain. This is how my Vite (npm create vite@latest) MERN project is structured: ...
jlimsy's user avatar
  • 3
0 votes
0 answers
11 views

EPIPE error when starting Vite and React project

I'm facing a problem when trying to start my application using Vite and React, published through Jenkins and monitored by Grafana. The EPIPE error occurs repeatedly, and the application constantly ...
Wesley Raeel's user avatar
0 votes
0 answers
18 views

ESLint 'no-unused-vars' error with Vite and React

I am working on a React project using Vite as my development server. Recently, I encountered an internal server error related to ESLint when trying to run my project. The error messages are pointing ...
Mostafa Mohamed Taha's user avatar
0 votes
0 answers
8 views

Vite/Rollup: Globals ignored, "No name was provided for external module"

For some reason, Rollup refuses to recognize my global external dependencies. From my vite.config.ts: export default defineConfig({ build: { rollupOptions: { external: ['radash', '@...
selfagency's user avatar
  • 1,560
1 vote
1 answer
27 views

Jest error: Jest encountered an unexpected token - query-string import

I'm getting the following: babel.config.json: { "presets": [ ["@babel/preset-env", { "targets": { "esmodules": true } }], ["@babel/preset-react&...
Syden's user avatar
  • 8,585
0 votes
0 answers
11 views

React project from Webpack to Vite [closed]

I'm moving my React project from Webpack to Vite, but I have some problems: File Extensions: My files end with .js, but Vite wants them to be .jsx. Node Version: My project uses Node 16.14.0, but Vite ...
logith vikram's user avatar
0 votes
0 answers
22 views

Vite - Building efficiently different applications based on common source code

I am currently developing a web application with Vue.js and Vite. I aim to produce two different versions of the same application using the same source code. For example, some components are common ...
nJoooy's user avatar
  • 55
0 votes
1 answer
18 views

Vite will not rollup scripts referenced only in Blade components

I have a Blade component that relies on some JavaScript, which I've put into a standalone module. The only place I need this script is when I'm using the component, so I've removed any mention of it ...
miken32's user avatar
  • 42.6k
0 votes
1 answer
15 views

Unexpected permissions errors when running dev script on vite based project

Everytime I try to run project based on Vite and running dev script, this happens. I'm only able to solve this by running VsCode with as administrator. Setting the folder to R&W permissions for ...
Atsukoro's user avatar
0 votes
0 answers
4 views

How to dynamic import in Nuxt 3 without preloading the bundle?

I'm trying to dynamic import firebase-auth module in Nuxt 3, however the build always preload firebase-auth despite dynamic import, sample code below: onMounted(async () => { if (Math.random() &...
Andrew See's user avatar
  • 1,122
0 votes
1 answer
42 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
  • 25

15 30 50 per page
1
2 3 4 5
444