7,048 questions
-1
votes
0
answers
24
views
Rewriting request headers in Vue 3 and Vite 7 [closed]
I'm using Vue 3.5.17, Vite 7.0.6. I'm trying to figure out how to add/edit outgoing HTTP headers. None of the examples I've seen work for me.
I've two different examples with no success. In my vite....
0
votes
0
answers
32
views
Vue SSR - computed gets executed only once?
I have a page roughly layouted like this: (simplified to showcase the problem)
// PageContent.vue
<script setup>
const props = defineProps({ data: Object });
const chapters = ref(null);
function ...
0
votes
0
answers
41
views
Cannot read properties of undefined (reading 'wrapDynamicImport'). Getting this error right after generating a new project and trying to run tests
I ran the following commands in sveltekit to create a new project
npx sv create ch_ui
I selected the following options
┌ Welcome to the Svelte CLI! (v0.8.20)
│
◇ Which template would you like?
│ ...
2
votes
5
answers
96
views
React App in Prod and Github Page showing blank screen
I've been trying to figure out this issue since yesterday, going through videos and discussions, following everything to a t, yet I'm shown the same error over and over. I created my website using ...
0
votes
1
answer
46
views
Trying to get Draggable to work on a React-Vite-TailwindCSS project
I am trying to use React-Draggable to allow components on my page to be draggable, but every time I wrap the element with <Draggable />, nothing seems to render. This only occurs when the ...
0
votes
0
answers
20
views
Vercel Deployment: White Screen with vercel.json, but 404 on Routes Without It
I'm having a persistent issue deploying a Vite + React (TypeScript) application with a Node.js (Express) backend to Vercel, and I'm caught in a frustrating loop.
The Tech Stack:
Frontend: Vite, React,...
1
vote
2
answers
80
views
How to work with Vite in Laravel during development?
I am using php artisan serve server, and when adding via resources @vite(['resources/js/test.js]), I get an error: Unable to locate file in Vite manifest: resources/js/test.js.
The vite.config.js file ...
1
vote
1
answer
57
views
How to build multiple HTML entry points with TypeScript injection and nested output folders in Vite?
Background
I'm migrating a complex multi-page application from Webpack to Vite. Each HTML file has a corresponding .ts script, and the files live in nested directories.
Note: These entry HTML and TS ...
0
votes
0
answers
24
views
Electron-builder content is not available for windows build production but work on mac and linux
i have a challenge since 3 days and even chatGpt couldn't resolve my issue :)
I have a react/capacitor/electron app packaged with vite to build. Everything ok for capacitor and Mac/Linux Electron. But ...
0
votes
0
answers
23
views
It looks like you're trying to use tailwindcss directly as a PostCSS plugin [duplicate]
I'm setting up a new project using Vite, React, and TailwindCSS.
I installed TailwindCSS and its dependencies like so:
npm install -D tailwindcss postcss autoprefixer
Then I created a postcss.config....
0
votes
0
answers
23
views
CSS color variables are not being loaded initially in vuetify with vite and nuxt
I am having production app on nuxt, where I have used vite vuetify plugin to initilize and vuetify plugin to register theme and other things. I am facing issue with color variables which are not being ...
-4
votes
0
answers
54
views
React app at test server doesn't add appname and returns 404 error
I have react + ASP.NET Core 9 app with vite configuration.
Local version works fine, but when I build QA configuration, then a request to the app returns http 200, but requests to composed index.js ...
0
votes
0
answers
29
views
Vite Module Federation: Getting 404 for remoteEntry.js on production host
I'm trying to implement a micro frontend architecture using Vite and Module Federation via vite-plugin-federation. I have two separate apps:
Host App (running at http://localhost:5000)
Remote App (e.g....
0
votes
0
answers
33
views
ReferenceError: Cannot access '__vite_ssr_import_1__' before initialization for Zod discriminated union
I'm working on a Zod schema for nodes where each node got a unique ID, unique type and an array of child nodes. Because of that I created a helper function acting as a base schema for nodes
function ...
1
vote
1
answer
37
views
How to dynamically compile a directory of mdx files before each vite build?
I'm using React and Vite for a project I'm working on.
What I currently need to do is compile and render all of the MDX files in a directory but I don't want to do the actual compilation on the client ...