vite-pwa / vite-plugin-pwa

Zero-config PWA for Vite
https://vite-pwa-org.netlify.app/
MIT License
3.21k stars 209 forks source link

Uncaught (in promise) TypeError: Failed to update a ServiceWorker for scope (***) with script (***/sw.js): A bad HTTP response code (500) was received when fetching the script. #219

Closed dgastudio closed 2 years ago

dgastudio commented 2 years ago

Hey I would like to ask for your help

React 17: vite: latest vite-pwa: latest

// vite config
import {defineConfig, loadEnv} from "vite";
import react from "@vitejs/plugin-react";
import path from 'path'
import viteCompression from 'vite-plugin-compression';
import {visualizer} from 'rollup-plugin-visualizer';
import optimizationPersist from 'vite-plugin-optimize-persist';
import pkgConfig from 'vite-plugin-package-config';
import {VitePWA} from "vite-plugin-pwa";
import fs from 'fs';

export default ({mode}) => {
  process.env = {...process.env, ...loadEnv(mode, process.cwd())};

  return defineConfig({
    server: {
      open: 'https://hkv3.frontend.local:3000',
    },
    plugins: [
      react(),
      VitePWA({
        devOptions: {
          enabled: true
        },
        includeAssets: [
          'favicon.png',
          'robots.txt',
          'apple-touch-icon.png',
          'icons/*.svg',
          'fonts/*.woff2'
        ],
        manifest: {
          theme_color: '#3eacff',
          icons: [
            {
              src: 'pwa-192x192.png',
              sizes: '192x192',
              type: 'image/png',
            },
            {
              src: 'pwa-512x512.png',
              sizes: '512x512',
              type: 'image/png',
            },
            {
              src: 'pwa-512x512.png',
              sizes: '512x512',
              type: 'image/png',
              purpose: 'any maskable',
            }
          ]
        }
      }),

    ],
    resolve: {
      alias: [
        {
          find: '@', replacement: path.resolve(__dirname, 'src')
        },
      ],
    },
    build: {
      sourcemap: true,
      outDir: path.resolve(__dirname, 'build'),
      minify: true,
      assetsInlineLimit: 8 * 1024,
    }
  });
};

app.jsx

in main component, App

  const intervalMS = 1000; 

  const {
    offlineReady: [offlineReady, setOfflineReady],
    needRefresh: [needRefresh, setNeedRefresh],
    updateServiceWorker,
  } = useRegisterSW({
    immediate: true,
    onRegistered(r) {
      if (r) {
        console.log("SW Registered: " + r);
        setInterval(async () => {
          await r.update();
        }, intervalMS);
      }
    },

    onRegisterError(error) {
      console.log("SW registration error", error);
    },
  });

  let token = localStorage.getItem('token')

  if (needRefresh) {
    return <>need refresh</>
  }

First build, everything seems ok, service worker is up and running

But, on rebuild,

Uncaught (in promise) TypeError: Failed to update a ServiceWorker for scope () with script (/sw.js): A bad HTTP response code (500) was received when fetching the script.

Any advice, please? Thank you

userquin commented 2 years ago

@dgastudio what's the error on server?

dgastudio commented 2 years ago

Hola Joaquín! no errors at server side, new build is compiled successfully.

userquin commented 2 years ago

@dgastudio can you put here the js error and a screenshot of the pwa virtual module?

EDIT: search in on source code => if you have a public repro it will be better

dgastudio commented 2 years ago

sure,

Build logs ```shell $ vite build vite v2.7.13 building for production... ✓ 3798 modules transformed. rendering chunks (148)... build/assets/logo-main.9aa391e4.png 23.92 KiB build/assets/auth_bg.e40f1b0d.jpg 567.88 KiB build/assets/1.3c91a09c.mp3 102.04 KiB build/assets/2.b049e0f2.mp3 83.67 KiB build/assets/4.54eb5b49.mp3 92.86 KiB build/assets/3.89124849.mp3 92.86 KiB build/assets/5.b4988e6f.mp3 102.04 KiB build/assets/6.022c80b1.mp3 102.04 KiB build/assets/7.b23fa0c8.mp3 102.04 KiB build/assets/10.2e7a95d6.mp3 111.22 KiB build/assets/9.13b2f6f3.mp3 111.22 KiB build/assets/8.a4cf55d5.mp3 102.04 KiB build/assets/logo_no_text.3bb48f34.svg 22.74 KiB build/assets/cat12.09d3106e.svg 5.33 KiB build/assets/not_found.ea2833a4.jpg 17.68 KiB build/assets/flaticon.ff1fef02.ttf 92.77 KiB build/assets/flaticon.9285d300.woff 39.29 KiB build/assets/flaticon.d3f545a4.woff2 32.39 KiB build/assets/flaticon.a98d5c5e.eot 92.94 KiB build/assets/flaticon.cd6141c7.svg 1564.05 KiB build/assets/not_found.c8acfef2.svg 24.70 KiB build/assets/error.a752c751.svg 74.28 KiB build/assets/background.32ea772e.svg 0.54 KiB build/assets/border.d6d4094e.svg 0.39 KiB build/assets/stretched.9956b444.svg 0.38 KiB build/assets/with-headings.ed704315.svg 0.26 KiB build/assets/without-headings.6d15b572.svg 0.29 KiB build/assets/toolboxIcon.f1f303af.svg 0.28 KiB build/index.html 1.24 KiB build/manifest.webmanifest 0.39 KiB build/assets/index.38356a75.js 11.41 KiB / gzip: 4.38 KiB build/assets/Login.7c66aa20.js 2.47 KiB / gzip: 1.13 KiB build/assets/HKTranslate.67493b34.js 1.34 KiB / gzip: 0.74 KiB build/assets/Settings.41448fb7.js 2.96 KiB / gzip: 1.16 KiB build/assets/Forecast.7979344e.js 0.92 KiB / gzip: 0.52 KiB build/assets/Header.3306d9f4.js 14.04 KiB / gzip: 4.78 KiB build/assets/index.5931b7d1.js 4.87 KiB / gzip: 1.58 KiB build/assets/Sidebar.6918abba.js 5.98 KiB / gzip: 2.29 KiB build/assets/AccessDenied.248d2b27.js 0.05 KiB / gzip: 0.07 KiB build/assets/AutoAssignment.4072bde5.js 0.28 KiB / gzip: 0.21 KiB build/assets/Content.c18fd57f.js 26.54 KiB / gzip: 7.35 KiB build/assets/___vite-browser-external_commonjs-proxy.3b9daca9.js 0.14 KiB / gzip: 0.15 KiB build/assets/Checklist.156bf71e.js 0.28 KiB / gzip: 0.21 KiB build/assets/CleaningTypes.56258c98.js 0.28 KiB / gzip: 0.21 KiB build/assets/Amenity.2a03ede6.js 0.28 KiB / gzip: 0.21 KiB build/assets/Conversations.70e6cc0d.js 0.28 KiB / gzip: 0.21 KiB build/assets/Event.f29fd8a4.js 0.28 KiB / gzip: 0.21 KiB build/assets/Information.cca4bff6.js 0.28 KiB / gzip: 0.21 KiB build/assets/Requests.512b3b3b.js 0.28 KiB / gzip: 0.21 KiB build/assets/DashboardConcierge.01d21c0a.js 13.29 KiB / gzip: 4.84 KiB build/assets/Audit.fddb4bd2.js 0.42 KiB / gzip: 0.24 KiB build/assets/tabs.d99fbd17.js 40.17 KiB / gzip: 12.79 KiB build/assets/FormField.f9c54c62.js 7.44 KiB / gzip: 2.75 KiB build/assets/Validation.91437cb9.js 0.32 KiB / gzip: 0.24 KiB build/assets/DashboardEmployees.53a865c1.js 13.29 KiB / gzip: 4.84 KiB build/assets/Audit.ef9e9a04.js 1.51 KiB / gzip: 0.85 KiB build/assets/DashboardWorkflow.83e969cc.js 1.57 KiB / gzip: 0.65 KiB build/assets/Employees.423f511e.js 0.28 KiB / gzip: 0.21 KiB build/assets/DashboardUnits.8049fa5c.js 11.87 KiB / gzip: 4.40 KiB build/assets/Schedule.9eee5fad.js 3.39 KiB / gzip: 1.51 KiB build/assets/Escalations.4689fe8c.js 0.28 KiB / gzip: 0.21 KiB build/assets/Inventory.ebea783a.js 0.28 KiB / gzip: 0.21 KiB build/assets/Logbook.4d7bdb14.js 0.28 KiB / gzip: 0.21 KiB build/assets/LostFound.50978443.js 0.28 KiB / gzip: 0.21 KiB build/assets/Media.53a0f103.js 0.89 KiB / gzip: 0.53 KiB build/assets/MediaPreset.ec242f09.js 0.28 KiB / gzip: 0.21 KiB build/assets/Notification.32a9739b.js 0.28 KiB / gzip: 0.21 KiB build/assets/Planner.0fb2cf4c.js 0.28 KiB / gzip: 0.21 KiB build/assets/Remarks.aafb3fe7.js 0.28 KiB / gzip: 0.21 KiB build/assets/Reservations.0608759e.js 0.28 KiB / gzip: 0.21 KiB build/assets/Rules.9b73641f.js 0.28 KiB / gzip: 0.21 KiB build/assets/Settings.19eca611.js 3.37 KiB / gzip: 1.43 KiB build/assets/Units.fb335195.js 0.28 KiB / gzip: 0.21 KiB build/assets/SubHeader.7e435302.js 8.41 KiB / gzip: 2.63 KiB build/assets/Workflow.768d4d2e.js 0.28 KiB / gzip: 0.21 KiB build/assets/WorkloadLevel.9edc8c99.js 0.28 KiB / gzip: 0.21 KiB build/assets/Add.0664b454.js 3.36 KiB / gzip: 1.16 KiB build/assets/Callbacks.e52d1b66.js 1.46 KiB / gzip: 0.72 KiB build/assets/Helper.f732f33d.js 2.89 KiB / gzip: 0.98 KiB build/assets/Edit.ffd2b5ea.js 3.82 KiB / gzip: 1.32 KiB build/assets/Remarks.d6cd5584.js 3.60 KiB / gzip: 1.49 KiB build/assets/Tabs.2d2e5bf3.js 17.44 KiB / gzip: 5.95 KiB build/assets/Settings.ec9782f6.js 4.07 KiB / gzip: 1.31 KiB build/assets/CleaningType.259d05cb.js 2.37 KiB / gzip: 1.04 KiB build/assets/I18nTextarea.a44d197e.js 1.52 KiB / gzip: 0.88 KiB build/assets/RecentlyRead.7d73c26b.js 1.40 KiB / gzip: 0.70 KiB build/assets/Add.43842460.js 4.10 KiB / gzip: 1.39 KiB build/assets/Helpers.740d88a2.js 3.20 KiB / gzip: 1.10 KiB build/assets/Edit.8b9200ea.js 4.10 KiB / gzip: 1.39 KiB build/assets/Add.80545df1.js 4.02 KiB / gzip: 1.61 KiB build/assets/Edit.b8313bf7.js 4.02 KiB / gzip: 1.60 KiB build/assets/Add.83b5c1c7.js 3.37 KiB / gzip: 1.37 KiB build/assets/Edit.55d5b3e9.js 3.37 KiB / gzip: 1.37 KiB build/assets/Edit.71ab7d8f.js 3.88 KiB / gzip: 1.35 KiB build/assets/Revisions.476d1b9e.js 0.49 KiB / gzip: 0.33 KiB build/assets/InfoBlock.836147e3.js 3.99 KiB / gzip: 1.42 KiB build/assets/View.b0dc6ee1.js 3.88 KiB / gzip: 1.16 KiB build/assets/Add.784655bf.js 4.79 KiB / gzip: 1.85 KiB build/assets/memoize-one.esm.7a54f149.js 0.42 KiB / gzip: 0.27 KiB build/assets/Edit.4f4279f1.js 3.88 KiB / gzip: 1.36 KiB build/assets/Add.cd272453.js 2.38 KiB / gzip: 0.85 KiB build/assets/Edit.4c728ba8.js 3.98 KiB / gzip: 1.41 KiB build/assets/Add.1a95e05c.js 7.63 KiB / gzip: 2.08 KiB build/assets/Edit.7649ef30.js 7.92 KiB / gzip: 2.19 KiB build/assets/BatchEdit.b33162da.js 7.71 KiB / gzip: 2.19 KiB build/assets/Add.cb949dfe.js 2.46 KiB / gzip: 0.97 KiB build/assets/helper.7c97a141.js 0.97 KiB / gzip: 0.45 KiB build/assets/Edit.96defd8f.js 2.26 KiB / gzip: 0.91 KiB build/assets/EmployeesGantt.7a8f821d.js 34.64 KiB / gzip: 7.41 KiB build/assets/utils.6db63c78.js 0.92 KiB / gzip: 0.40 KiB build/assets/Add.0d614f9b.js 4.23 KiB / gzip: 1.59 KiB build/assets/Helper.d8cca566.js 1.63 KiB / gzip: 0.82 KiB build/assets/Edit.d2b3809d.js 4.39 KiB / gzip: 1.64 KiB build/assets/Settings.09ee92e6.js 4.07 KiB / gzip: 1.31 KiB build/assets/Export.2c404b03.js 3.02 KiB / gzip: 1.27 KiB build/assets/Add.c06df385.js 5.13 KiB / gzip: 1.67 KiB build/assets/Batch.5a395296.js 3.51 KiB / gzip: 0.94 KiB build/assets/Edit.e6f434da.js 5.71 KiB / gzip: 1.81 KiB build/assets/Add.66ccf66b.js 3.96 KiB / gzip: 1.30 KiB build/assets/range.9d01271c.js 0.39 KiB / gzip: 0.29 KiB build/assets/Batch.cff8b616.js 3.51 KiB / gzip: 0.94 KiB build/assets/Edit.e983f7e7.js 3.55 KiB / gzip: 1.25 KiB build/assets/Add.ab3da6dd.js 4.44 KiB / gzip: 1.41 KiB build/assets/Helpers.ff84c325.js 1.98 KiB / gzip: 0.94 KiB build/assets/Batch.d5ec4f78.js 3.51 KiB / gzip: 0.94 KiB build/assets/Edit.3b66ba6b.js 4.44 KiB / gzip: 1.41 KiB build/assets/Add.9a732c74.js 4.17 KiB / gzip: 1.33 KiB build/assets/Batch.31cf0971.js 3.51 KiB / gzip: 0.94 KiB build/assets/Edit.ef3e5c60.js 3.55 KiB / gzip: 1.25 KiB build/assets/Add.a8a00441.js 4.79 KiB / gzip: 1.68 KiB build/assets/Batch.c19b690c.js 3.48 KiB / gzip: 0.92 KiB build/assets/Edit.5c0b486d.js 3.55 KiB / gzip: 1.25 KiB build/assets/Add.8606d4f2.js 3.99 KiB / gzip: 1.18 KiB build/assets/Batch.e849768a.js 3.48 KiB / gzip: 0.92 KiB build/assets/Edit.caca7f52.js 4.65 KiB / gzip: 1.37 KiB build/assets/Add.2ba5e7d8.js 3.56 KiB / gzip: 1.38 KiB build/assets/sort.7e005c66.js 0.17 KiB / gzip: 0.14 KiB build/assets/BatchEdit.846fdc98.js 3.50 KiB / gzip: 0.93 KiB build/assets/Edit.444ffa3b.js 4.27 KiB / gzip: 1.58 KiB build/assets/Settings.750273fc.js 1.85 KiB / gzip: 0.69 KiB build/assets/Add.c25ce9e0.js 3.68 KiB / gzip: 1.34 KiB build/assets/Edit.2fe2c419.js 4.38 KiB / gzip: 1.52 KiB build/assets/Add.f9d33f65.js 3.04 KiB / gzip: 1.13 KiB build/assets/Edit.8dc1cfbf.js 3.05 KiB / gzip: 1.14 KiB build/assets/Media.29abc7b6.js 0.92 KiB / gzip: 0.41 KiB build/assets/Add.9ced9a9d.js 3.01 KiB / gzip: 1.20 KiB build/assets/Edit.9b6661da.js 1.16 KiB / gzip: 0.49 KiB build/assets/Payment.86d8b27f.js 12.05 KiB / gzip: 4.66 KiB build/assets/Add.8f0d2419.js 8.79 KiB / gzip: 2.08 KiB build/assets/rrule.9f6993df.js 0.78 KiB / gzip: 0.39 KiB build/assets/BatchEdit.0a9b60a7.js 3.50 KiB / gzip: 0.92 KiB build/assets/Edit.22a9f0aa.js 9.11 KiB / gzip: 2.20 KiB build/assets/Settings.eb3e96e3.js 4.07 KiB / gzip: 1.31 KiB build/assets/Add.463e4bef.js 4.42 KiB / gzip: 1.64 KiB build/assets/Helper.e2ec91b0.js 1.63 KiB / gzip: 0.82 KiB build/assets/Edit.619c11fa.js 4.55 KiB / gzip: 1.68 KiB build/assets/Highlights.856947c0.js 4.26 KiB / gzip: 1.32 KiB build/assets/Edit.607d8d3c.js 2.51 KiB / gzip: 0.86 KiB build/assets/Add.f70087ef.js 3.36 KiB / gzip: 1.45 KiB build/assets/Edit.ebf9555a.js 2.97 KiB / gzip: 1.26 KiB build/assets/Settings.19cf434a.js 4.07 KiB / gzip: 1.31 KiB build/assets/Settings.807e1c18.js 2.14 KiB / gzip: 1.04 KiB build/assets/Help.f0c6722a.js 0.11 KiB / gzip: 0.12 KiB build/assets/Add.64c2cbb4.js 3.68 KiB / gzip: 1.14 KiB build/assets/BatchEdit.8af5e826.js 3.47 KiB / gzip: 1.13 KiB build/assets/Edit.a0356c26.js 4.42 KiB / gzip: 1.40 KiB build/assets/Add.51cb6163.js 11.88 KiB / gzip: 3.83 KiB build/assets/AddSingle.9ef164a1.js 3.30 KiB / gzip: 1.11 KiB build/assets/BatchEdit.c26b4ba5.js 3.03 KiB / gzip: 1.10 KiB build/assets/Edit.687bca02.js 4.05 KiB / gzip: 1.35 KiB build/assets/Settings.6bce53c4.js 3.21 KiB / gzip: 1.26 KiB build/assets/Add.af3aae0d.js 2.36 KiB / gzip: 0.93 KiB build/assets/Edit.9ca79236.js 3.37 KiB / gzip: 1.37 KiB build/assets/ViewTable.de09fa74.js 15.02 KiB / gzip: 4.81 KiB build/assets/Chat.3bda65fe.css 7.38 KiB / gzip: 1.80 KiB build/assets/Remarks.cd4c3afa.css 5.69 KiB / gzip: 1.23 KiB build/assets/tabs.bad88ab8.css 4.85 KiB / gzip: 1.35 KiB build/assets/Add.1b3496b9.css 7.84 KiB / gzip: 2.73 KiB build/assets/Main.d59ed7df.js 99.45 KiB / gzip: 28.43 KiB build/assets/Modal.71b41bbc.js 73.18 KiB / gzip: 18.43 KiB build/assets/Google.e8e3b340.js 116.65 KiB / gzip: 31.55 KiB build/assets/react-beautiful-dnd.esm.7bb2a5cb.js 103.75 KiB / gzip: 31.20 KiB build/assets/helper.f46b9bcf.js 61.61 KiB / gzip: 21.88 KiB build/assets/Wrapper.ec253261.js 113.08 KiB / gzip: 36.31 KiB build/assets/rruleset.0391db2a.js 107.55 KiB / gzip: 32.88 KiB build/assets/InlineFilters.17a09697.js 114.34 KiB / gzip: 38.30 KiB build/assets/index.05fbe0b5.css 443.67 KiB / gzip: 58.98 KiB build/assets/Add.f3bd085b.js 429.82 KiB / gzip: 116.78 KiB build/assets/Chat.04588f16.js 581.27 KiB / gzip: 103.77 KiB build/assets/vendor.023216df.js 1083.56 KiB / gzip: 323.69 KiB build/assets/index.9ec00413.js 1010.84 KiB / gzip: 334.74 KiB (!) Some chunks are larger than 500 KiB after minification. Consider: - Using dynamic import() to code-split the application - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. PWA v0.11.13 mode generateSW precache 167 entries (4960.68 KiB) files generated build/sw.js build/workbox-3e4da89b.js ✨ [vite-plugin-compression]:algorithm=brotliCompress - compressed file successfully: build/assets/Add.1a95e05c.js.br 7.63kb / brotliCompress: 1.84kb build/assets/Add.1b3496b9.css.br 7.84kb / brotliCompress: 2.30kb build/assets/Add.0d614f9b.js.br 4.23kb / brotliCompress: 1.43kb build/assets/Add.43842460.js.br 4.10kb / brotliCompress: 1.23kb build/assets/Add.463e4bef.js.br 4.42kb / brotliCompress: 1.47kb build/assets/Add.784655bf.js.br 4.79kb / brotliCompress: 1.61kb build/assets/Add.51cb6163.js.br 11.88kb / brotliCompress: 3.41kb build/assets/Add.64c2cbb4.js.br 3.68kb / brotliCompress: 0.98kb build/assets/Add.66ccf66b.js.br 3.96kb / brotliCompress: 1.13kb build/assets/Add.80545df1.js.br 4.02kb / brotliCompress: 1.46kb build/assets/Add.83b5c1c7.js.br 3.37kb / brotliCompress: 1.22kb build/assets/Add.8606d4f2.js.br 3.99kb / brotliCompress: 1.03kb build/assets/Add.9a732c74.js.br 4.17kb / brotliCompress: 1.16kb build/assets/Add.9ced9a9d.js.br 3.01kb / brotliCompress: 1.05kb build/assets/Add.8f0d2419.js.br 8.79kb / brotliCompress: 1.83kb build/assets/Add.a8a00441.js.br 4.79kb / brotliCompress: 1.49kb build/assets/Add.af3aae0d.js.br 2.36kb / brotliCompress: 0.83kb build/assets/Add.ab3da6dd.js.br 4.44kb / brotliCompress: 1.25kb build/assets/Add.c06df385.js.br 5.13kb / brotliCompress: 1.48kb build/assets/Add.cd272453.js.br 2.38kb / brotliCompress: 0.74kb build/assets/Add.2ba5e7d8.js.br 3.56kb / brotliCompress: 1.20kb build/assets/Add.0664b454.js.br 3.36kb / brotliCompress: 1.03kb build/assets/Add.f9d33f65.js.br 3.04kb / brotliCompress: 1.00kb build/assets/Add.cb949dfe.js.br 2.46kb / brotliCompress: 0.86kb build/assets/Audit.ef9e9a04.js.br 1.51kb / brotliCompress: 0.74kb build/assets/AddSingle.9ef164a1.js.br 3.30kb / brotliCompress: 0.96kb build/assets/Add.c25ce9e0.js.br 3.68kb / brotliCompress: 1.16kb build/assets/Batch.5a395296.js.br 3.51kb / brotliCompress: 0.84kb build/assets/Batch.31cf0971.js.br 3.51kb / brotliCompress: 0.84kb build/assets/Batch.c19b690c.js.br 3.48kb / brotliCompress: 0.81kb build/assets/Batch.cff8b616.js.br 3.51kb / brotliCompress: 0.84kb build/assets/Batch.e849768a.js.br 3.48kb / brotliCompress: 0.81kb build/assets/BatchEdit.846fdc98.js.br 3.50kb / brotliCompress: 0.83kb build/assets/BatchEdit.0a9b60a7.js.br 3.50kb / brotliCompress: 0.81kb build/assets/BatchEdit.8af5e826.js.br 3.47kb / brotliCompress: 0.99kb build/assets/BatchEdit.b33162da.js.br 7.71kb / brotliCompress: 1.93kb build/assets/Add.f70087ef.js.br 3.36kb / brotliCompress: 1.27kb build/assets/Callbacks.e52d1b66.js.br 1.46kb / brotliCompress: 0.66kb build/assets/CleaningType.259d05cb.js.br 2.37kb / brotliCompress: 0.88kb build/assets/Chat.3bda65fe.css.br 7.38kb / brotliCompress: 1.48kb build/assets/DashboardConcierge.01d21c0a.js.br 13.29kb / brotliCompress: 4.09kb build/assets/Batch.d5ec4f78.js.br 3.51kb / brotliCompress: 0.84kb build/assets/DashboardEmployees.53a865c1.js.br 13.29kb / brotliCompress: 4.09kb build/assets/BatchEdit.c26b4ba5.js.br 3.03kb / brotliCompress: 0.94kb build/assets/DashboardWorkflow.83e969cc.js.br 1.57kb / brotliCompress: 0.57kb build/assets/Edit.3b66ba6b.js.br 4.44kb / brotliCompress: 1.25kb build/assets/Edit.22a9f0aa.js.br 9.11kb / brotliCompress: 1.93kb build/assets/Edit.444ffa3b.js.br 4.27kb / brotliCompress: 1.39kb build/assets/Content.c18fd57f.js.br 26.54kb / brotliCompress: 6.49kb build/assets/Edit.2fe2c419.js.br 4.38kb / brotliCompress: 1.35kb build/assets/DashboardUnits.8049fa5c.js.br 11.87kb / brotliCompress: 3.74kb build/assets/Edit.55d5b3e9.js.br 3.37kb / brotliCompress: 1.22kb build/assets/Edit.607d8d3c.js.br 2.51kb / brotliCompress: 0.73kb build/assets/Edit.4f4279f1.js.br 3.88kb / brotliCompress: 1.20kb build/assets/Edit.687bca02.js.br 4.05kb / brotliCompress: 1.19kb build/assets/Edit.71ab7d8f.js.br 3.88kb / brotliCompress: 1.20kb build/assets/Edit.8dc1cfbf.js.br 3.05kb / brotliCompress: 1.01kb build/assets/Edit.619c11fa.js.br 4.55kb / brotliCompress: 1.51kb build/assets/Edit.4c728ba8.js.br 3.98kb / brotliCompress: 1.24kb build/assets/Edit.96defd8f.js.br 2.26kb / brotliCompress: 0.81kb build/assets/Edit.7649ef30.js.br 7.92kb / brotliCompress: 1.92kb build/assets/Edit.8b9200ea.js.br 4.10kb / brotliCompress: 1.23kb build/assets/Edit.a0356c26.js.br 4.42kb / brotliCompress: 1.24kb build/assets/Edit.9ca79236.js.br 3.37kb / brotliCompress: 1.21kb build/assets/Edit.9b6661da.js.br 1.16kb / brotliCompress: 0.42kb build/assets/Edit.d2b3809d.js.br 4.39kb / brotliCompress: 1.47kb build/assets/Edit.caca7f52.js.br 4.65kb / brotliCompress: 1.20kb build/assets/Edit.ef3e5c60.js.br 3.55kb / brotliCompress: 1.07kb build/assets/Edit.e6f434da.js.br 5.71kb / brotliCompress: 1.62kb build/assets/Edit.b8313bf7.js.br 4.02kb / brotliCompress: 1.44kb build/assets/Edit.ffd2b5ea.js.br 3.82kb / brotliCompress: 1.17kb build/assets/Edit.ebf9555a.js.br 2.97kb / brotliCompress: 1.10kb build/assets/Edit.e983f7e7.js.br 3.55kb / brotliCompress: 1.07kb build/assets/Edit.5c0b486d.js.br 3.55kb / brotliCompress: 1.07kb build/assets/Export.2c404b03.js.br 3.02kb / brotliCompress: 1.12kb build/assets/HKTranslate.67493b34.js.br 1.34kb / brotliCompress: 0.66kb build/assets/Helper.d8cca566.js.br 1.63kb / brotliCompress: 0.72kb build/assets/FormField.f9c54c62.js.br 7.44kb / brotliCompress: 2.46kb build/assets/Helper.f732f33d.js.br 2.89kb / brotliCompress: 0.86kb build/assets/Helper.e2ec91b0.js.br 1.63kb / brotliCompress: 0.72kb build/assets/Helpers.740d88a2.js.br 3.20kb / brotliCompress: 0.97kb build/assets/EmployeesGantt.7a8f821d.js.br 34.64kb / brotliCompress: 6.07kb build/assets/Helpers.ff84c325.js.br 1.98kb / brotliCompress: 0.84kb build/assets/I18nTextarea.a44d197e.js.br 1.52kb / brotliCompress: 0.79kb build/assets/InfoBlock.836147e3.js.br 3.99kb / brotliCompress: 1.25kb build/assets/Header.3306d9f4.js.br 14.04kb / brotliCompress: 4.27kb build/assets/Highlights.856947c0.js.br 4.26kb / brotliCompress: 1.16kb build/assets/Login.7c66aa20.js.br 2.47kb / brotliCompress: 0.96kb build/assets/RecentlyRead.7d73c26b.js.br 1.40kb / brotliCompress: 0.63kb build/assets/Payment.86d8b27f.js.br 12.05kb / brotliCompress: 4.11kb build/assets/Remarks.cd4c3afa.css.br 5.69kb / brotliCompress: 1.02kb build/assets/Schedule.9eee5fad.js.br 3.39kb / brotliCompress: 1.36kb build/assets/Modal.71b41bbc.js.br 73.18kb / brotliCompress: 15.82kb build/assets/Settings.09ee92e6.js.br 4.07kb / brotliCompress: 1.17kb build/assets/Settings.41448fb7.js.br 2.96kb / brotliCompress: 1.03kb build/assets/Remarks.d6cd5584.js.br 3.60kb / brotliCompress: 1.32kb build/assets/Settings.19cf434a.js.br 4.07kb / brotliCompress: 1.17kb build/assets/Settings.19eca611.js.br 3.37kb / brotliCompress: 1.26kb build/assets/Settings.750273fc.js.br 1.85kb / brotliCompress: 0.61kb build/assets/Settings.eb3e96e3.js.br 4.07kb / brotliCompress: 1.17kb build/assets/SubHeader.7e435302.js.br 8.41kb / brotliCompress: 2.36kb build/assets/Sidebar.6918abba.js.br 5.98kb / brotliCompress: 2.02kb build/assets/Settings.ec9782f6.js.br 4.07kb / brotliCompress: 1.17kb build/assets/Settings.807e1c18.js.br 2.14kb / brotliCompress: 0.92kb build/assets/Settings.6bce53c4.js.br 3.21kb / brotliCompress: 1.12kb build/assets/View.b0dc6ee1.js.br 3.88kb / brotliCompress: 1.00kb build/assets/ViewTable.de09fa74.js.br 15.02kb / brotliCompress: 4.25kb build/assets/index.38356a75.js.br 11.41kb / brotliCompress: 3.85kb build/assets/Tabs.2d2e5bf3.js.br 17.44kb / brotliCompress: 5.23kb build/assets/index.5931b7d1.js.br 4.87kb / brotliCompress: 1.41kb build/assets/tabs.bad88ab8.css.br 4.85kb / brotliCompress: 1.16kb build/index.html.br 1.24kb / brotliCompress: 0.43kb build/assets/tabs.d99fbd17.js.br 40.17kb / brotliCompress: 11.29kb build/assets/Google.e8e3b340.js.br 116.65kb / brotliCompress: 26.76kb build/assets/Main.d59ed7df.js.br 99.96kb / brotliCompress: 24.42kb build/assets/helper.f46b9bcf.js.br 61.61kb / brotliCompress: 19.66kb build/assets/react-beautiful-dnd.esm.7bb2a5cb.js.br 103.75kb / brotliCompress: 27.48kb build/assets/rruleset.0391db2a.js.br 107.55kb / brotliCompress: 29.25kb build/assets/InlineFilters.17a09697.js.br 114.34kb / brotliCompress: 34.32kb build/assets/Wrapper.ec253261.js.br 113.08kb / brotliCompress: 32.19kb build/assets/index.05fbe0b5.css.br 443.67kb / brotliCompress: 43.02kb build/assets/Add.f3bd085b.js.br 429.83kb / brotliCompress: 95.01kb build/assets/Chat.04588f16.js.br 581.27kb / brotliCompress: 74.37kb build/assets/index.9ec00413.js.br 1010.84kb / brotliCompress: 272.02kb build/assets/vendor.023216df.js.br 1083.56kb / brotliCompress: 268.26kb ✨ Done in 19.07s. Process finished with exit code 0 ------------ PWA screnshot https://monosnap.com/file/m4yyZnzxOlVfIkk4E7RwJx6hYMXvrq After doing a new build ----- /opt/homebrew/bin/node /opt/homebrew/Cellar/yarn/1.22.17_2/libexec/bin/yarn.js run build yarn run v1.22.17 $ vite build vite v2.7.13 building for production... ✓ 3798 modules transformed. rendering chunks (134)... build/assets/logo-main.9aa391e4.png 23.92 KiB build/assets/auth_bg.e40f1b0d.jpg 567.88 KiB build/assets/logo_no_text.3bb48f34.svg 22.74 KiB build/assets/1.3c91a09c.mp3 102.04 KiB build/assets/2.b049e0f2.mp3 83.67 KiB build/assets/3.89124849.mp3 92.86 KiB build/assets/5.b4988e6f.mp3 102.04 KiB build/assets/4.54eb5b49.mp3 92.86 KiB build/assets/6.022c80b1.mp3 102.04 KiB build/assets/7.b23fa0c8.mp3 102.04 KiB build/assets/9.13b2f6f3.mp3 111.22 KiB build/assets/8.a4cf55d5.mp3 102.04 KiB build/assets/10.2e7a95d6.mp3 111.22 KiB build/assets/cat12.09d3106e.svg 5.33 KiB build/assets/flaticon.ff1fef02.ttf 92.77 KiB build/assets/flaticon.9285d300.woff 39.29 KiB build/assets/flaticon.d3f545a4.woff2 32.39 KiB build/assets/flaticon.a98d5c5e.eot 92.94 KiB build/assets/not_found.ea2833a4.jpg 17.68 KiB build/assets/flaticon.cd6141c7.svg 1564.05 KiB build/assets/not_found.c8acfef2.svg 24.70 KiB build/assets/error.a752c751.svg 74.28 KiB build/assets/background.32ea772e.svg 0.54 KiB build/assets/border.d6d4094e.svg 0.39 KiB build/assets/stretched.9956b444.svg 0.38 KiB build/assets/with-headings.ed704315.svg 0.26 KiB build/assets/without-headings.6d15b572.svg 0.29 KiB build/assets/toolboxIcon.f1f303af.svg 0.28 KiB build/index.html 1.24 KiB build/manifest.webmanifest 0.39 KiB build/assets/index.38356a75.js 11.41 KiB / gzip: 4.38 KiB build/assets/HKTranslate.67493b34.js 1.34 KiB / gzip: 0.74 KiB build/assets/Forecast.7979344e.js 0.92 KiB / gzip: 0.52 KiB build/assets/Settings.41448fb7.js 2.96 KiB / gzip: 1.16 KiB build/assets/index.5931b7d1.js 4.87 KiB / gzip: 1.58 KiB build/assets/Sidebar.6918abba.js 5.98 KiB / gzip: 2.29 KiB build/assets/AccessDenied.248d2b27.js 0.05 KiB / gzip: 0.07 KiB build/assets/Header.3306d9f4.js 14.04 KiB / gzip: 4.78 KiB build/assets/AutoAssignment.4072bde5.js 0.28 KiB / gzip: 0.21 KiB build/assets/___vite-browser-external_commonjs-proxy.3b9daca9.js 0.14 KiB / gzip: 0.15 KiB build/assets/Checklist.156bf71e.js 0.28 KiB / gzip: 0.21 KiB build/assets/CleaningTypes.56258c98.js 0.28 KiB / gzip: 0.21 KiB build/assets/Amenity.2a03ede6.js 0.28 KiB / gzip: 0.21 KiB build/assets/Login.7c66aa20.js 2.47 KiB / gzip: 1.13 KiB build/assets/Conversations.70e6cc0d.js 0.28 KiB / gzip: 0.21 KiB build/assets/Content.c18fd57f.js 26.54 KiB / gzip: 7.35 KiB build/assets/Event.f29fd8a4.js 0.28 KiB / gzip: 0.21 KiB build/assets/Information.cca4bff6.js 0.28 KiB / gzip: 0.21 KiB build/assets/Requests.512b3b3b.js 0.28 KiB / gzip: 0.21 KiB build/assets/Audit.fddb4bd2.js 0.42 KiB / gzip: 0.24 KiB build/assets/DashboardConcierge.01d21c0a.js 13.29 KiB / gzip: 4.84 KiB build/assets/tabs.d99fbd17.js 40.17 KiB / gzip: 12.79 KiB build/assets/Validation.91437cb9.js 0.32 KiB / gzip: 0.24 KiB build/assets/FormField.f9c54c62.js 7.44 KiB / gzip: 2.75 KiB build/assets/DashboardEmployees.53a865c1.js 13.29 KiB / gzip: 4.84 KiB build/assets/Audit.ef9e9a04.js 1.51 KiB / gzip: 0.85 KiB build/assets/DashboardWorkflow.83e969cc.js 1.57 KiB / gzip: 0.65 KiB build/assets/Employees.423f511e.js 0.28 KiB / gzip: 0.21 KiB build/assets/Schedule.9eee5fad.js 3.39 KiB / gzip: 1.51 KiB build/assets/Escalations.4689fe8c.js 0.28 KiB / gzip: 0.21 KiB build/assets/Inventory.ebea783a.js 0.28 KiB / gzip: 0.21 KiB build/assets/Logbook.4d7bdb14.js 0.28 KiB / gzip: 0.21 KiB build/assets/LostFound.50978443.js 0.28 KiB / gzip: 0.21 KiB build/assets/Media.53a0f103.js 0.89 KiB / gzip: 0.53 KiB build/assets/DashboardUnits.8049fa5c.js 11.87 KiB / gzip: 4.40 KiB build/assets/MediaPreset.ec242f09.js 0.28 KiB / gzip: 0.21 KiB build/assets/Notification.32a9739b.js 0.28 KiB / gzip: 0.21 KiB build/assets/Planner.0fb2cf4c.js 0.28 KiB / gzip: 0.21 KiB build/assets/Reservations.0608759e.js 0.28 KiB / gzip: 0.21 KiB build/assets/Remarks.aafb3fe7.js 0.28 KiB / gzip: 0.21 KiB build/assets/Rules.9b73641f.js 0.28 KiB / gzip: 0.21 KiB build/assets/Units.fb335195.js 0.28 KiB / gzip: 0.21 KiB build/assets/Workflow.768d4d2e.js 0.28 KiB / gzip: 0.21 KiB build/assets/Settings.19eca611.js 3.37 KiB / gzip: 1.43 KiB build/assets/WorkloadLevel.9edc8c99.js 0.28 KiB / gzip: 0.21 KiB build/assets/Add.0664b454.js 3.36 KiB / gzip: 1.16 KiB build/assets/SubHeader.7e435302.js 8.41 KiB / gzip: 2.63 KiB build/assets/Callbacks.e52d1b66.js 1.46 KiB / gzip: 0.72 KiB build/assets/Edit.ffd2b5ea.js 3.82 KiB / gzip: 1.32 KiB build/assets/Helper.f732f33d.js 2.89 KiB / gzip: 0.98 KiB build/assets/Remarks.d6cd5584.js 3.60 KiB / gzip: 1.49 KiB build/assets/Settings.ec9782f6.js 4.07 KiB / gzip: 1.31 KiB build/assets/CleaningType.259d05cb.js 2.37 KiB / gzip: 1.04 KiB build/assets/Tabs.2d2e5bf3.js 17.44 KiB / gzip: 5.95 KiB build/assets/I18nTextarea.a44d197e.js 1.52 KiB / gzip: 0.88 KiB build/assets/Add.43842460.js 4.10 KiB / gzip: 1.39 KiB build/assets/RecentlyRead.7d73c26b.js 1.40 KiB / gzip: 0.70 KiB build/assets/Helpers.740d88a2.js 3.20 KiB / gzip: 1.10 KiB build/assets/Edit.8b9200ea.js 4.10 KiB / gzip: 1.39 KiB build/assets/Add.80545df1.js 4.02 KiB / gzip: 1.61 KiB build/assets/Edit.b8313bf7.js 4.02 KiB / gzip: 1.60 KiB build/assets/Add.83b5c1c7.js 3.37 KiB / gzip: 1.37 KiB build/assets/Edit.55d5b3e9.js 3.37 KiB / gzip: 1.37 KiB build/assets/Revisions.476d1b9e.js 0.49 KiB / gzip: 0.33 KiB build/assets/Edit.71ab7d8f.js 3.88 KiB / gzip: 1.35 KiB build/assets/InfoBlock.836147e3.js 3.99 KiB / gzip: 1.42 KiB build/assets/View.b0dc6ee1.js 3.88 KiB / gzip: 1.16 KiB build/assets/Add.784655bf.js 4.79 KiB / gzip: 1.85 KiB build/assets/memoize-one.esm.7a54f149.js 0.42 KiB / gzip: 0.27 KiB build/assets/Edit.4f4279f1.js 3.88 KiB / gzip: 1.36 KiB build/assets/Add.cd272453.js 2.38 KiB / gzip: 0.85 KiB build/assets/Edit.4c728ba8.js 3.98 KiB / gzip: 1.41 KiB build/assets/Add.1a95e05c.js 7.63 KiB / gzip: 2.08 KiB build/assets/Edit.7649ef30.js 7.92 KiB / gzip: 2.19 KiB build/assets/BatchEdit.b33162da.js 7.71 KiB / gzip: 2.19 KiB build/assets/Add.cb949dfe.js 2.46 KiB / gzip: 0.97 KiB build/assets/helper.7c97a141.js 0.97 KiB / gzip: 0.45 KiB build/assets/Edit.96defd8f.js 2.26 KiB / gzip: 0.91 KiB build/assets/utils.6db63c78.js 0.92 KiB / gzip: 0.40 KiB build/assets/Add.0d614f9b.js 4.23 KiB / gzip: 1.59 KiB build/assets/Edit.d2b3809d.js 4.39 KiB / gzip: 1.64 KiB build/assets/Helper.d8cca566.js 1.63 KiB / gzip: 0.82 KiB build/assets/Settings.09ee92e6.js 4.07 KiB / gzip: 1.31 KiB build/assets/EmployeesGantt.7a8f821d.js 34.64 KiB / gzip: 7.41 KiB build/assets/Export.2c404b03.js 3.02 KiB / gzip: 1.27 KiB build/assets/Batch.5a395296.js 3.51 KiB / gzip: 0.94 KiB build/assets/Add.c06df385.js 5.13 KiB / gzip: 1.67 KiB build/assets/Add.66ccf66b.js 3.96 KiB / gzip: 1.30 KiB build/assets/range.9d01271c.js 0.39 KiB / gzip: 0.29 KiB build/assets/Edit.e6f434da.js 5.71 KiB / gzip: 1.81 KiB build/assets/Batch.cff8b616.js 3.51 KiB / gzip: 0.94 KiB build/assets/Helpers.ff84c325.js 1.98 KiB / gzip: 0.94 KiB build/assets/Edit.e983f7e7.js 3.55 KiB / gzip: 1.25 KiB build/assets/Batch.d5ec4f78.js 3.51 KiB / gzip: 0.94 KiB build/assets/Add.ab3da6dd.js 4.44 KiB / gzip: 1.41 KiB build/assets/Add.9a732c74.js 4.17 KiB / gzip: 1.33 KiB build/assets/Edit.3b66ba6b.js 4.44 KiB / gzip: 1.41 KiB build/assets/Batch.31cf0971.js 3.51 KiB / gzip: 0.94 KiB build/assets/Edit.ef3e5c60.js 3.55 KiB / gzip: 1.25 KiB build/assets/Batch.c19b690c.js 3.48 KiB / gzip: 0.92 KiB build/assets/Add.a8a00441.js 4.79 KiB / gzip: 1.68 KiB build/assets/Edit.5c0b486d.js 3.55 KiB / gzip: 1.25 KiB build/assets/Add.8606d4f2.js 3.99 KiB / gzip: 1.18 KiB build/assets/Batch.e849768a.js 3.48 KiB / gzip: 0.92 KiB build/assets/sort.7e005c66.js 0.17 KiB / gzip: 0.14 KiB build/assets/Edit.caca7f52.js 4.65 KiB / gzip: 1.37 KiB build/assets/BatchEdit.846fdc98.js 3.50 KiB / gzip: 0.93 KiB build/assets/Settings.750273fc.js 1.85 KiB / gzip: 0.69 KiB build/assets/Add.2ba5e7d8.js 3.56 KiB / gzip: 1.38 KiB build/assets/Edit.444ffa3b.js 4.27 KiB / gzip: 1.58 KiB build/assets/Add.c25ce9e0.js 3.68 KiB / gzip: 1.34 KiB build/assets/Add.f9d33f65.js 3.04 KiB / gzip: 1.13 KiB build/assets/Edit.2fe2c419.js 4.38 KiB / gzip: 1.52 KiB build/assets/Media.29abc7b6.js 0.92 KiB / gzip: 0.41 KiB build/assets/Edit.8dc1cfbf.js 3.05 KiB / gzip: 1.14 KiB build/assets/Edit.9b6661da.js 1.16 KiB / gzip: 0.49 KiB build/assets/rrule.9f6993df.js 0.78 KiB / gzip: 0.39 KiB build/assets/Add.9ced9a9d.js 3.01 KiB / gzip: 1.20 KiB build/assets/BatchEdit.0a9b60a7.js 3.50 KiB / gzip: 0.92 KiB build/assets/Add.8f0d2419.js 8.79 KiB / gzip: 2.08 KiB build/assets/Settings.eb3e96e3.js 4.07 KiB / gzip: 1.31 KiB build/assets/Edit.22a9f0aa.js 9.11 KiB / gzip: 2.20 KiB build/assets/Helper.e2ec91b0.js 1.63 KiB / gzip: 0.82 KiB build/assets/Add.463e4bef.js 4.42 KiB / gzip: 1.64 KiB build/assets/Edit.607d8d3c.js 2.51 KiB / gzip: 0.86 KiB build/assets/Payment.86d8b27f.js 12.05 KiB / gzip: 4.66 KiB build/assets/Highlights.856947c0.js 4.26 KiB / gzip: 1.32 KiB build/assets/Edit.619c11fa.js 4.55 KiB / gzip: 1.68 KiB build/assets/Add.f70087ef.js 3.36 KiB / gzip: 1.45 KiB build/assets/Edit.ebf9555a.js 2.97 KiB / gzip: 1.26 KiB build/assets/Settings.807e1c18.js 2.14 KiB / gzip: 1.04 KiB build/assets/Settings.19cf434a.js 4.07 KiB / gzip: 1.31 KiB build/assets/Help.f0c6722a.js 0.11 KiB / gzip: 0.12 KiB build/assets/Add.64c2cbb4.js 3.68 KiB / gzip: 1.14 KiB build/assets/BatchEdit.8af5e826.js 3.47 KiB / gzip: 1.13 KiB build/assets/Edit.a0356c26.js 4.42 KiB / gzip: 1.40 KiB build/assets/BatchEdit.c26b4ba5.js 3.03 KiB / gzip: 1.10 KiB build/assets/AddSingle.9ef164a1.js 3.30 KiB / gzip: 1.11 KiB build/assets/Settings.6bce53c4.js 3.21 KiB / gzip: 1.26 KiB build/assets/Edit.687bca02.js 4.05 KiB / gzip: 1.35 KiB build/assets/Add.af3aae0d.js 2.36 KiB / gzip: 0.93 KiB build/assets/Add.51cb6163.js 11.88 KiB / gzip: 3.83 KiB build/assets/Edit.9ca79236.js 3.37 KiB / gzip: 1.37 KiB build/assets/tabs.bad88ab8.css 4.85 KiB / gzip: 1.35 KiB build/assets/Remarks.cd4c3afa.css 5.69 KiB / gzip: 1.23 KiB build/assets/Chat.3bda65fe.css 7.38 KiB / gzip: 1.80 KiB build/assets/Add.1b3496b9.css 7.84 KiB / gzip: 2.73 KiB build/assets/ViewTable.de09fa74.js 15.02 KiB / gzip: 4.81 KiB build/assets/Modal.71b41bbc.js 73.18 KiB / gzip: 18.43 KiB build/assets/Main.d59ed7df.js 99.45 KiB / gzip: 28.43 KiB build/assets/Google.e8e3b340.js 116.65 KiB / gzip: 31.55 KiB build/assets/helper.f46b9bcf.js 61.61 KiB / gzip: 21.88 KiB build/assets/Wrapper.ec253261.js 113.08 KiB / gzip: 36.31 KiB build/assets/rruleset.0391db2a.js 107.55 KiB / gzip: 32.88 KiB build/assets/InlineFilters.17a09697.js 114.34 KiB / gzip: 38.30 KiB build/assets/react-beautiful-dnd.esm.7bb2a5cb.js 103.75 KiB / gzip: 31.20 KiB build/assets/index.05fbe0b5.css 443.67 KiB / gzip: 58.98 KiB build/assets/Add.f3bd085b.js 429.82 KiB / gzip: 116.78 KiB build/assets/Chat.04588f16.js 581.27 KiB / gzip: 103.77 KiB build/assets/vendor.023216df.js 1083.56 KiB / gzip: 323.69 KiB build/assets/index.9ec00413.js 1010.84 KiB / gzip: 334.74 KiB (!) Some chunks are larger than 500 KiB after minification. Consider: - Using dynamic import() to code-split the application - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. PWA v0.11.13 mode generateSW precache 167 entries (4960.68 KiB) files generated build/sw.js build/workbox-3e4da89b.js ✨ [vite-plugin-compression]:algorithm=brotliCompress - compressed file successfully: build/assets/Add.0664b454.js.br 3.36kb / brotliCompress: 1.03kb build/assets/Add.0d614f9b.js.br 4.23kb / brotliCompress: 1.43kb build/assets/Add.1a95e05c.js.br 7.63kb / brotliCompress: 1.84kb build/assets/Add.1b3496b9.css.br 7.84kb / brotliCompress: 2.30kb build/assets/Add.2ba5e7d8.js.br 3.56kb / brotliCompress: 1.20kb build/assets/Add.43842460.js.br 4.10kb / brotliCompress: 1.23kb build/assets/Add.784655bf.js.br 4.79kb / brotliCompress: 1.61kb build/assets/Add.463e4bef.js.br 4.42kb / brotliCompress: 1.47kb build/assets/Add.64c2cbb4.js.br 3.68kb / brotliCompress: 0.98kb build/assets/Add.80545df1.js.br 4.02kb / brotliCompress: 1.46kb build/assets/Add.51cb6163.js.br 11.88kb / brotliCompress: 3.41kb build/assets/Add.8606d4f2.js.br 3.99kb / brotliCompress: 1.03kb build/assets/Add.66ccf66b.js.br 3.96kb / brotliCompress: 1.13kb build/assets/Add.83b5c1c7.js.br 3.37kb / brotliCompress: 1.22kb build/assets/Add.8f0d2419.js.br 8.79kb / brotliCompress: 1.83kb build/assets/Add.9a732c74.js.br 4.17kb / brotliCompress: 1.16kb build/assets/Add.9ced9a9d.js.br 3.01kb / brotliCompress: 1.05kb build/assets/Add.c25ce9e0.js.br 3.68kb / brotliCompress: 1.16kb build/assets/Add.a8a00441.js.br 4.79kb / brotliCompress: 1.49kb build/assets/Add.c06df385.js.br 5.13kb / brotliCompress: 1.48kb build/assets/Add.cb949dfe.js.br 2.46kb / brotliCompress: 0.86kb build/assets/Add.ab3da6dd.js.br 4.44kb / brotliCompress: 1.25kb build/assets/Add.af3aae0d.js.br 2.36kb / brotliCompress: 0.83kb build/assets/Add.f70087ef.js.br 3.36kb / brotliCompress: 1.27kb build/assets/Add.cd272453.js.br 2.38kb / brotliCompress: 0.74kb build/assets/AddSingle.9ef164a1.js.br 3.30kb / brotliCompress: 0.96kb build/assets/Add.f9d33f65.js.br 3.04kb / brotliCompress: 1.00kb build/assets/Audit.ef9e9a04.js.br 1.51kb / brotliCompress: 0.74kb build/assets/Batch.c19b690c.js.br 3.48kb / brotliCompress: 0.81kb build/assets/Batch.5a395296.js.br 3.51kb / brotliCompress: 0.84kb build/assets/Batch.31cf0971.js.br 3.51kb / brotliCompress: 0.84kb build/assets/Batch.d5ec4f78.js.br 3.51kb / brotliCompress: 0.84kb build/assets/Batch.e849768a.js.br 3.48kb / brotliCompress: 0.81kb build/assets/BatchEdit.0a9b60a7.js.br 3.50kb / brotliCompress: 0.81kb build/assets/BatchEdit.846fdc98.js.br 3.50kb / brotliCompress: 0.83kb build/assets/BatchEdit.8af5e826.js.br 3.47kb / brotliCompress: 0.99kb build/assets/BatchEdit.c26b4ba5.js.br 3.03kb / brotliCompress: 0.94kb build/assets/BatchEdit.b33162da.js.br 7.71kb / brotliCompress: 1.93kb build/assets/Batch.cff8b616.js.br 3.51kb / brotliCompress: 0.84kb build/assets/Callbacks.e52d1b66.js.br 1.46kb / brotliCompress: 0.66kb build/assets/CleaningType.259d05cb.js.br 2.37kb / brotliCompress: 0.88kb build/assets/Chat.3bda65fe.css.br 7.38kb / brotliCompress: 1.48kb build/assets/DashboardEmployees.53a865c1.js.br 13.29kb / brotliCompress: 4.09kb build/assets/Content.c18fd57f.js.br 26.54kb / brotliCompress: 6.49kb build/assets/DashboardConcierge.01d21c0a.js.br 13.29kb / brotliCompress: 4.09kb build/assets/DashboardWorkflow.83e969cc.js.br 1.57kb / brotliCompress: 0.57kb build/assets/DashboardUnits.8049fa5c.js.br 11.87kb / brotliCompress: 3.74kb build/assets/Edit.22a9f0aa.js.br 9.11kb / brotliCompress: 1.93kb build/assets/Edit.3b66ba6b.js.br 4.44kb / brotliCompress: 1.25kb build/assets/Edit.444ffa3b.js.br 4.27kb / brotliCompress: 1.39kb build/assets/Edit.4f4279f1.js.br 3.88kb / brotliCompress: 1.20kb build/assets/Edit.4c728ba8.js.br 3.98kb / brotliCompress: 1.24kb build/assets/Edit.2fe2c419.js.br 4.38kb / brotliCompress: 1.35kb build/assets/Edit.5c0b486d.js.br 3.55kb / brotliCompress: 1.07kb build/assets/Edit.55d5b3e9.js.br 3.37kb / brotliCompress: 1.22kb build/assets/Edit.619c11fa.js.br 4.55kb / brotliCompress: 1.51kb build/assets/Edit.687bca02.js.br 4.05kb / brotliCompress: 1.19kb build/assets/Edit.8b9200ea.js.br 4.10kb / brotliCompress: 1.23kb build/assets/Edit.71ab7d8f.js.br 3.88kb / brotliCompress: 1.20kb build/assets/Edit.7649ef30.js.br 7.92kb / brotliCompress: 1.92kb build/assets/Edit.8dc1cfbf.js.br 3.05kb / brotliCompress: 1.01kb build/assets/Edit.96defd8f.js.br 2.26kb / brotliCompress: 0.81kb build/assets/Edit.9ca79236.js.br 3.37kb / brotliCompress: 1.21kb build/assets/Edit.a0356c26.js.br 4.42kb / brotliCompress: 1.24kb build/assets/Edit.9b6661da.js.br 1.16kb / brotliCompress: 0.42kb build/assets/Edit.607d8d3c.js.br 2.51kb / brotliCompress: 0.73kb build/assets/Edit.caca7f52.js.br 4.65kb / brotliCompress: 1.20kb build/assets/Edit.b8313bf7.js.br 4.02kb / brotliCompress: 1.44kb build/assets/Edit.e6f434da.js.br 5.71kb / brotliCompress: 1.62kb build/assets/Edit.d2b3809d.js.br 4.39kb / brotliCompress: 1.47kb build/assets/Edit.e983f7e7.js.br 3.55kb / brotliCompress: 1.07kb build/assets/Edit.ebf9555a.js.br 2.97kb / brotliCompress: 1.10kb build/assets/Edit.ffd2b5ea.js.br 3.82kb / brotliCompress: 1.17kb build/assets/Edit.ef3e5c60.js.br 3.55kb / brotliCompress: 1.07kb build/assets/FormField.f9c54c62.js.br 7.44kb / brotliCompress: 2.46kb build/assets/Export.2c404b03.js.br 3.02kb / brotliCompress: 1.12kb build/assets/Helper.e2ec91b0.js.br 1.63kb / brotliCompress: 0.72kb build/assets/EmployeesGantt.7a8f821d.js.br 34.64kb / brotliCompress: 6.07kb build/assets/Helper.d8cca566.js.br 1.63kb / brotliCompress: 0.72kb build/assets/Helper.f732f33d.js.br 2.89kb / brotliCompress: 0.86kb build/assets/Helpers.740d88a2.js.br 3.20kb / brotliCompress: 0.97kb build/assets/HKTranslate.67493b34.js.br 1.34kb / brotliCompress: 0.66kb build/assets/Highlights.856947c0.js.br 4.26kb / brotliCompress: 1.16kb build/assets/Helpers.ff84c325.js.br 1.98kb / brotliCompress: 0.84kb build/assets/InfoBlock.836147e3.js.br 3.99kb / brotliCompress: 1.25kb build/assets/Header.3306d9f4.js.br 14.04kb / brotliCompress: 4.27kb build/assets/RecentlyRead.7d73c26b.js.br 1.40kb / brotliCompress: 0.63kb build/assets/Payment.86d8b27f.js.br 12.05kb / brotliCompress: 4.11kb build/assets/Modal.71b41bbc.js.br 73.18kb / brotliCompress: 15.82kb build/assets/Login.7c66aa20.js.br 2.47kb / brotliCompress: 0.96kb build/assets/Remarks.d6cd5584.js.br 3.60kb / brotliCompress: 1.32kb build/assets/Remarks.cd4c3afa.css.br 5.69kb / brotliCompress: 1.02kb build/assets/Schedule.9eee5fad.js.br 3.39kb / brotliCompress: 1.36kb build/assets/I18nTextarea.a44d197e.js.br 1.52kb / brotliCompress: 0.79kb build/assets/Settings.19cf434a.js.br 4.07kb / brotliCompress: 1.17kb build/assets/Settings.09ee92e6.js.br 4.07kb / brotliCompress: 1.17kb build/assets/Settings.19eca611.js.br 3.37kb / brotliCompress: 1.26kb build/assets/Settings.41448fb7.js.br 2.96kb / brotliCompress: 1.03kb build/assets/Settings.6bce53c4.js.br 3.21kb / brotliCompress: 1.12kb build/assets/Settings.ec9782f6.js.br 4.07kb / brotliCompress: 1.17kb build/assets/Settings.750273fc.js.br 1.85kb / brotliCompress: 0.61kb build/assets/Sidebar.6918abba.js.br 5.98kb / brotliCompress: 2.02kb build/assets/SubHeader.7e435302.js.br 8.41kb / brotliCompress: 2.36kb build/assets/Settings.eb3e96e3.js.br 4.07kb / brotliCompress: 1.17kb build/assets/Tabs.2d2e5bf3.js.br 17.44kb / brotliCompress: 5.23kb build/assets/View.b0dc6ee1.js.br 3.88kb / brotliCompress: 1.00kb build/assets/ViewTable.de09fa74.js.br 15.02kb / brotliCompress: 4.25kb build/assets/index.5931b7d1.js.br 4.87kb / brotliCompress: 1.41kb build/assets/tabs.bad88ab8.css.br 4.85kb / brotliCompress: 1.16kb build/index.html.br 1.24kb / brotliCompress: 0.43kb build/assets/tabs.d99fbd17.js.br 40.17kb / brotliCompress: 11.29kb build/assets/Settings.807e1c18.js.br 2.14kb / brotliCompress: 0.92kb build/assets/index.38356a75.js.br 11.41kb / brotliCompress: 3.85kb build/assets/Google.e8e3b340.js.br 116.65kb / brotliCompress: 26.76kb build/assets/Main.d59ed7df.js.br 99.96kb / brotliCompress: 24.42kb build/assets/helper.f46b9bcf.js.br 61.61kb / brotliCompress: 19.66kb build/assets/rruleset.0391db2a.js.br 107.55kb / brotliCompress: 29.25kb build/assets/react-beautiful-dnd.esm.7bb2a5cb.js.br 103.75kb / brotliCompress: 27.48kb build/assets/InlineFilters.17a09697.js.br 114.34kb / brotliCompress: 34.32kb build/assets/Wrapper.ec253261.js.br 113.08kb / brotliCompress: 32.19kb build/assets/index.05fbe0b5.css.br 443.67kb / brotliCompress: 43.02kb build/assets/Add.f3bd085b.js.br 429.83kb / brotliCompress: 95.01kb build/assets/Chat.04588f16.js.br 581.27kb / brotliCompress: 74.37kb build/assets/index.9ec00413.js.br 1010.84kb / brotliCompress: 272.02kb build/assets/vendor.023216df.js.br 1083.56kb / brotliCompress: 268.26kb ✨ Done in 19.25s. Process finished with exit code 0 ------- ```

Console errors https://monosnap.com/file/Q2RK96F6XlHNPg3X5dLYtugpKRYsVF

userquin commented 2 years ago

@dgastudio try adding scope and base on pwa plugin and scope on manifest entry:

VitePWA({
  scope: '/',
  base: '/',
  manifest: {
    scope: '/',
  }
})
dgastudio commented 2 years ago

No, same error.

userquin commented 2 years ago

@dgastudio screenshot with the error on the promise expanded

dgastudio commented 2 years ago

image

userquin commented 2 years ago

@dgastudio the error is not the same, can you show the formatted code at that line on index.js? should have an if statement registering the service worker.

dgastudio commented 2 years ago

whole component https://pastebin.com/uYEDnfQQ

userquin commented 2 years ago

@dgastudio https://hkv3.frontend.local:3000 is local machine serving build or in dev? can you show the formatted code at that line on index.js?

dgastudio commented 2 years ago

index.js

import React from 'react'; import * as ReactDOM from 'react-dom'; import App from './App.jsx';

const container = document.getElementById('root');

// Create a root. const root = ReactDOM.createRoot(container); root.render();

https://hkv3.frontend.local:3000 is a dev

https://hkv3.build.local is a build

userquin commented 2 years ago

@dgastudio it seems the sw is being served with an incorrect mime type, just check the error: do you have a frontend behind the dev server?

userquin commented 2 years ago

@dgastudio feel free to open a new issue if the problem persists