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.

4741 questions
1
vote
1 answer

Medusajs SyntaxError: The requested module does not provide an export named - Unexpected Application Error

I encountered an unexpected application error with the following error message: > cd medusa-store/admin > yarn start "SyntaxError: The requested module '/node_modules/.vite/deps/medusa-react.js?v=b30cf161' does not provide an export named…
shyakadev
  • 33
  • 5
1
vote
1 answer

Conditional dynamic imports always included in bundle Vite + Svelte

I use Vite api builder and with a custom plugin I replace some variables in the code, let's say I have const __CONFIG__ = {}; it's being replaced with a real object during the build. So for the compiler it will be just a plain object and based on it…
Georgy
  • 1,879
  • 2
  • 9
  • 14
1
vote
0 answers

Uncaught SyntaxError: Unexpected token 'export' in Vite build

I'm encountering an error while building my Vite project. The error message I'm receiving is "Uncaught SyntaxError: Unexpected token 'export' (at bundle.js:265:26574)." I'm unsure about what is causing this error and how to resolve it.
1
vote
1 answer

Blank page when deploying react made by vite to github pages

I have been struggling a lot to tackle this problem but still I cannot find the right answer. When I try to deploy my react app made by vite to github pages, there is a blank page. But locally, it works perfect. This is the page I have deployed. And…
1
vote
0 answers

Vite/vue3 HMR not updating imported store refs/computeds when files changed

tl;dr HMR working everywhere except for imported pinia store refs. I have a fairly basic Vue3 + vite + pinia site, and I'm trying to get hot module replacement (HMR) working for store values. Whenever I modify a ref on a component *.vue file…
PhysRex
  • 184
  • 2
  • 7
1
vote
1 answer

Laravel 10 Vue3 Vite4 Inertia [Vue warn]: Failed to resolve component: i:pgfRef

I struggle at the moment with the following error: runtime-core.esm-bundler.js:41 [ Vue warn]: Failed to resolve component: i:pgfRef If this is a native custom element, make sure to exclude it from component resolution via…
Kiezgold
  • 9
  • 3
1
vote
0 answers

Vite Vue 3 hot reload not working with typescript files separate from .vue component

I have a Vue 3 application with Vite 4 configured and the hot reload doesn't work when I make a change to the typescript file. I have the following structure: MyComponent.vue MyComponent.ts Where MyComponent imports the .ts script and scss file,…
Vinicius Aquino
  • 697
  • 13
  • 27
1
vote
0 answers

Exit code error encountered when terminating 'yarn start' command with Ctrl+C

When executing the command 'yarn start' and attempting to terminate it using Ctrl+C, I encounter an exit code error." Question: "When I run the 'yarn start' command and subsequently terminate it with Ctrl+C, I receive the following error message:…
1
vote
0 answers

DataTables not working when built for production

I'm using DataTables with Vue and Vite, which works flawlessly using npm run dev, however when building for production npm run build, no page where the DT is used, works. It throws an error: Uncaught (in promise) TypeError: Cannot set properties of…
The VaLo
  • 35
  • 1
  • 12
1
vote
1 answer

How to build multiple bundles using Vite similar to Multi Compiler mode(multi config) in Webpack

I have an app which has a main index.html with main.js . But there are also external scripts(libraries) that are injected into index.html programatically from inside main.js . All those scripts(libraries) are built differently because they need…
1
vote
0 answers

vite react typescript - tsconfig moduleResolution makes VSCode intellisense loading forever

I'm new to JS world. Please let me know the correct way and where did I go wrong. Thank you so much! My project use Vite^4.3.2, React^18.2.0 & Typescript^5.0.4. I have to use an specific external react components library with pnpm v7.14.0 and node…
Kai
  • 11
  • 2
1
vote
0 answers

how to make electron with next js 13.4?

I'm diving into a new project and I want to build a desktop application using Next.js 13.4 and Electron. But I couldn't find any boilerplates for this combo. I did give Vite a shot, but no luck there either. I would greatly appreciate any…
1
vote
1 answer

Error: listen EADDRNOTAVAIL: address not available 127.0.0.0:5173

after install project with tailwind with the command npm create vite@latest my-project -- --template react and after config tailwind, I tried to run my project but I got this error. I tried to install with next too and got the same error I tried to…
1
vote
0 answers

How to correctly setup a mono repo with yarn workspaces, vue3, typescript and vite

I'm using yarn workspaces for a couple of months now but i'm running into errors when trying to build stuff using yarn build which executes. Which executes vue-tsc --noEmit && vite build the vue-tsc part fails sometimes after making small irrelevant…
1
vote
1 answer

Running Storybook as path in main Svelte/Kit app

Description of problem, and expectation Let's say you want to hypothetically run Storybook alongside your Svelte/Kit app in which two Vite servers are expected to run: localhost: --> Main app localhost: --> Storybook app This is the…
LionOnTheWeb
  • 326
  • 2
  • 16