quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time

Home Page:https://quasar.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

upgrade to app-vite beta, can not find the correct entrance when config publicPath 'nestFolder'

PeakJ opened this issue · comments

What happened?

  1. update app-vite to ^2.0.0-beta.1
  2. config quasar.config.ts build>publicPath: '/testPublic'
  3. yarn dev
  4. catch error [vite] Pre-transform error: Failed to load url /testPublic/.quasar/dev-spa/client-entry.js (resolved id: /testPublic/.quasar/dev-spa/client-entry.js). Does the file exist?

What did you expect to happen?

find correct entrance when config publicPath

Reproduction URL

https://stackblitz.com/~/github.com/PeakJ/test-quasar

How to reproduce?

  1. yarn install
  2. yarn dev
  3. open http://localhost:9000/testPublic/

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite), SPA Mode

Platforms/Browsers

No response

Quasar info output

quasar info

Operating System - Darwin(23.2.0) - darwin/x64
NodeJs - 20.6.1

Global packages
  NPM - 9.8.1
  yarn - 1.22.19
  @quasar/cli - 2.3.0
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.14.4 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-vite - 2.0.0-beta.1 -- Quasar Framework App CLI with Vite
  @quasar/extras - 1.16.9 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.4.19 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.2.5
  pinia - 2.1.7 -- Intuitive, type safe and flexible Store for Vue
  vuex - Not installed
  vite - 5.1.3 -- Native-ESM powered web dev build tool
  esbuild - 0.20.0 -- An extremely fast JavaScript and CSS bundler and minifier.
  eslint - 8.56.0 -- An AST-based pattern checker for JavaScript.
  electron - Not installed
  electron-packager - Not installed
  electron-builder - Not installed
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Networking
  Host - someone.local
  en0 - 10.14.162.44
  en7 - 10.14.192.4

Relevant log output

» App URL................ http://localhost:9000/testPublic/
                           http://10.14.162.44:9000/testPublic/
                           http://10.14.192.4:9000/testPublic/
 » Dev mode............... spa
 » Pkg quasar............. v2.14.4
 » Pkg @quasar/app-vite... v2.0.0-beta.1
 » Browser target......... es2019|edge88|firefox78|chrome87|safari13.1

 App • Opening default browser at http://localhost:9000/testPublic/

2:28:57 PM [vite] Pre-transform error: Failed to load url /testPublic/.quasar/dev-spa/client-entry.js (resolved id: /testPublic/.quasar/dev-spa/client-entry.js). Does the file exist?

Additional context

No response

Thank you for opening this ticket!
Fix will be available shortly in v2.0.0-beta.2