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,648
questions
-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 ...
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 ...
-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 ...
-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 ...
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:
...
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 ...
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 ...
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', '@...
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&...
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 ...
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 ...
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 ...
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 ...
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() &...
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 ...