vite Questions
4
I migrated from webpack to vite successfully in a vue2 project and now I am upgrading from vue2 to vue3.
I made it until step 4 in this guide: https://v3-migration.vuejs.org/migration-build.html#in...
2
I got error below than I inspect the error found - AWS$6.STS.prototype
Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
It build successfully. And I can upload file to ...
Charpoy asked 20/11, 2022 at 10:9
2
If im running vite dev server with "npm run dev" and I edit say utils.js, how do I make vite do a FULL reload from index.html so ALL the scripts gets reloaded?
The problem I have is: if I...
Leede asked 6/2, 2022 at 15:50
2
The problem occurs for Vite monorepo, @ aliases are respected by TypeScript because of separate tsconfig files (can be visible in IDE) but aren't distinguished among the workspaces by Vite on build...
Shiller asked 9/2, 2023 at 19:49
7
I'm developing a vue3 project with vite.
The HMR doesn't working fine in my dev enviroment.
When a vue file edited, vite handle the change and send a message thru websocket correctly
{"type&qu...
Mezuzah asked 30/11, 2022 at 9:14
5
Solved
Hi have been having troubling importing inline svgs into my nuxt3 vite project. Any advice would be much appreciated.
i found this works <img src="~/assets/images/icons/push-icon-chatops.sv...
Byelaw asked 1/10, 2022 at 9:49
4
I am pretty new to web dev and I am currently trying to build something with React + Vite.
But when I run npm run dev the page shows me a completely white screen like this:
And there is no error in...
Apgar asked 9/10, 2022 at 3:38
8
Solved
When i try to deploy my react app to github pages with the package gh-pages, the result page is blank.result page
The page I am trying to deploy is here: LINK
I don't know if it matters but I am cu...
Unhitch asked 21/11, 2022 at 12:24
3
I've set up a docker configuration to run my React app, but when starting the container, I encounter the following error:
frontend-1 | failed to load config from /app/vite.config.ts
frontend-1 | er...
Duroc asked 16/4 at 18:35
7
I am new to testing and I was trying to use vitest for testing my mern social media app. looking for references to test a react component using vitest i found this article https://eternaldev.com/bl...
Forklift asked 7/8, 2023 at 18:6
2
Solved
I am trying to setup a vite project that has multiple entry points.
https://stackblitz.com/edit/vitejs-vite-swtkdv
It is a pretty basic setup taken straight from the vite website that uses vanilla ...
Mantilla asked 16/11, 2023 at 22:28
4
Solved
On my website, I have a few routes that are made using React-Router, that point to a few different pages on the website itself. It all works fine in Development mode, but the build version is where...
Plumlee asked 7/2, 2023 at 15:45
3
Solved
installed pnpm add -D vitest and pnpm add -D @vitest/ui in my project dir, when i try vitest --ui, I get this error
vitest : The term 'vitest' is not recognized as the name of a cmdlet, function, s...
8
Solved
I created a new vue app by doing these (according to vue docs)
npm init vue@latest
npm install
Then I try to run npm run dev.Then this happened.
My environments are these
OS => Ubuntu
Node v...
Sedum asked 18/8, 2022 at 19:22
3
It seems that vite does not do automatic polyfills anymore - vite 4.0.0
How do you guys go about this? I have tried multiple variations of what I could find over the internet and none of them seems...
Interplead asked 24/1, 2023 at 10:33
3
I have a simple React + Vite project that I deployed on Vercel for the first time for fun. But whenever i hit refresh on a sub-route, it sends me to a 404 page.
I'm using react-router-v6 for ...
Geffner asked 8/4, 2023 at 7:2
5
To import and use svg file in sveltekit I refer to this article
https://riez.medium.com/svelte-kit-importing-svg-as-svelte-component-781903fef4ae
By the way, when I finally input the code
<svelt...
Precaution asked 30/4, 2021 at 16:33
5
I know this is a pretty common question but all the answers on the web are not working for me.
I have a php and js app working in Laravel with React and Vite, and I dev on Windows (cmd). I worked w...
Lancelle asked 4/11, 2023 at 9:33
7
Solved
I am initializing TailWindCSS using https://tailwindcss.com/docs/guides/create-react-app on a Vite + React + JavaScript project but cant get it to work, It seems like postcss and autoprefixer is no...
Caloric asked 2/1, 2023 at 20:58
3
I'm building a React app with Vite that is hosted in a subdirectory (/pwa) on my webserver.
The main site is a Drupal 10 site.
Previously, I was using Create React App to build my PWA. I have now c...
1
I'm trying to convert default Vite template JS with Babel/preset-env, to be compatible with older browsers - to es2015. In code generated by Vite still appear const instead of var.
I'm using this p...
Scut asked 1/4, 2023 at 12:10
2
Solved
I have been reading through the Vite documentation for Web workers, and it mentioned importing a file using "Query Suffixes," which I have never encountered and am not sure what to search...
Pitiful asked 1/11, 2022 at 0:41
3
I'm building a chrome extension using Vite as my build tool. The main problem is during minification and mangling there are a lot of global variables created. After injecting my script to the page ...
5
Solved
I have a problem trying to make a build of a new Vue3.js + Vite.js application. Once my application is finished i made the npm run build action in order to generate the final deployment files.
Prob...
Target asked 25/4, 2022 at 20:7
7
Any and all help will be much appreciated.
I've been trying to deploy to Heroku with all day. I'm using Vite locally to develop, so I figured I'd try to deploy with that too. Everything works local...
Debt asked 5/10, 2021 at 2:21
1 Next >
© 2022 - 2024 — McMap. All rights reserved.