Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] upgarde to V4: The file \index.html is missing. Please add it back. #17902

Closed
gowy222 opened this issue Mar 15, 2025 · 1 comment
Closed

Comments

@gowy222
Copy link

gowy222 commented Mar 15, 2025

What happened?

windows 11

 App • Using quasar.config.cjs in "cjs" format
 App •  TIP  • 🚀  You (or an AE) specified an explicit quasar.config file > devServer > port. It is recommended to use a different devServer > port for each Quasar mode to avoid browser cache issues. Example: ctx.mode.ssr ? 9100 : ...
 App • ⚠️  The file \index.html is missing. Please add it back.


 App • ⚠️   FAIL  Files validation not passed successfully


Administrator in quasar_oms\oms on  master [✘!?] via  v22.14.0 
❯
 quasar_oms\oms\src\index.html # bug??
...

<body arco-theme="dark"
	style="height: 100% !important; background-color: #161616; padding: 0 !important; margin: 0 !important">
	
	<!-- quasar:entry-point -->
	
	<% for (let i in js.links) { %>
		<script src="<%= js.links[i] %>"></script>
		<% } %>


</body>

</html>

What did you expect to happen?

cd oms
then run quasar d should find src\index.html!

Reproduction URL

local issue

How to reproduce?

quasar_oms\oms\src\index.html # bug?? this path bug?

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

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

Platforms/Browsers

No response

Quasar info output

Operating System - Windows_NT(10.0.22000) - win32/x64
NodeJs - 22.14.0

Global packages
  NPM - 10.9.0
  yarn - 1.22.19
  pnpm - 10.6.3
  bun - Not installed
  @quasar/cli - 2.5.0
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.18.1 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-webpack - 4.1.2 -- Quasar Framework App CLI with Webpack
  @quasar/extras - 1.16.17 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.5.13 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.5.0
  pinia - 3.0.1 -- Intuitive, type safe and flexible Store for Vue
  eslint - Not installed
  esbuild - 0.25.1 -- An extremely fast JavaScript and CSS bundler and minifier.
  typescript - 4.9.4 -- TypeScript is a language for application scale JavaScript development
  @babel/core - 7.25.2 -- Babel compiler core.
  webpack - 5.98.0 -- Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  webpack-dev-server - 5.2.0 -- Serves a webpack app. Updates the browser on changes.
  workbox-webpack-plugin - 7.3.0 -- A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache.
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  electron - Not installed
  @electron/packager - Not installed
  electron-builder - Not installed
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Relevant log output

Additional context

if keep use old index.template.html
and it can find:

App • Using quasar.config.cjs in "cjs" format
 App •  TIP  • 🚀  You (or an AE) specified an explicit quasar.config file > devServer > port. It is recommended to use a different devServer > port for each Quasar mode to avoid browser cache issues. Example: ctx.mode.ssr ? 9100 : ...
 App • ⚠️  The file \index.html is missing but found the deprecated /src/index.template.html one instead.

  Please do the following to fix this:
  1. Move /src/index.template.html to \index.html
  2. Then replace the following content in it:

    <!-- DO NOT touch the following DIV -->
    <div id="q-app"></div>

    with:

    <!-- quasar:entry-point -->


 App • ⚠️   FAIL  Files validation not passed successfully

means:
quasar_oms\oms\src\index.template.html >> the CLI can find index.html
quasar_oms\oms\src\index.html >> the CLI can NOT find index.html [bug]

Copy link

Hi @gowy222! 👋

It looks like you provided an invalid or unsupported reproduction URL.
Do not use any service other than Codepen, jsFiddle, StackBlitz, CodeSandbox, and GitHub.
Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc.
Please edit your original post above and provide a valid reproduction URL as explained.

Without a proper reproduction, your issue will have to get closed.

Thank you for your collaboration. 👏

@gowy222 gowy222 closed this as completed Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant