title: vite:build-html Cannot read properties of undefined (reading 'startOffset')
body: <p>I'm trying to run npm run build but I encounter this error. I tried to solve it but I'm just beginning my dev journey and was following an old tutoria.how can i go about solving this issue, any solutions will be appreciated.</p>
  <p>the error:</p>
  <p>error during build:
  TypeError: Cannot read properties of undefined (reading 'startOffset')
  at overwriteAttrValue (file:///C:/Users/Altayeb/Desktop/guide_gps/node_modules/vite/dist/node/chunks/dep-557f29e6.js:43339:50)
  at Object.transform (file:///C:/Users/Altayeb/Desktop/guide_gps/node_modules/vite/dist/node/chunks/dep-557f29e6.js:43575:29)<br />
  at async transform (file:///C:/Users/Altayeb/Desktop/guide_gps/node_modules/rollup/dist/es/shared/rollup.js:21928:16)
  at async ModuleLoader.addModuleSource (file:///C:/Users/Altayeb/Desktop/guide_gps/node_modules/rollup/dist/es/shared/rollup.js:22153:30)</p>
  <p>here is my index.html:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  
  &lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot; /&gt;
    &lt;link rel=&quot;icon&quot; type=&quot;image/svg+xml&quot; href=&quot;favicon.svg&quot; /&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
    &lt;title&gt;GUIDE GPS&lt;/title&gt;
    &lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.googleapis.com&quot;&gt;
    &lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.gstatic.com&quot; crossorigin&gt;
    &lt;link href=&quot;https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;700&amp;display=swap&quot; rel=&quot;stylesheet&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;https://unpkg.com/a11y-slider@latest/dist/a11y-slider.css&quot; /&gt;
    &lt;script src=&quot;https://unpkg.com/a11y-slider@latest/dist/a11y-slider.js&quot; defer&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;header class=&quot;primary-header&quot;&gt;
      &lt;div class=&quot;container&quot;&gt;
        &lt;div class=&quot;nav-wrapper&quot;&gt;
          &lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;images/logo.svg&quot; alt=&quot;Logo&quot;&gt;&lt;/a&gt;
          &lt;button class=&quot;mobile-nav-toggle&quot; aria-controls=&quot;primary-navigation&quot; aria-expanded=&quot;false&quot;&gt;
            &lt;span class=&quot;visually-hidden&quot;&gt;Menu&lt;/span&gt;
          &lt;/button&gt;
          &lt;nav class=&quot;primary-navigation&quot; id=&quot;primary-navigation&quot;&gt;
            &lt;ul aria-label=&quot;Primary&quot; role=&quot;list&quot; class=&quot;nav-list&quot;&gt;
              &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Pricing&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Services&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;https://github.com/Altayeb1422/Privacy-policy-/blob/main/Privacy-policy&quot;&gt;Privacy Policy&lt;/a&gt;&lt;/li&gt;
              &lt;!-- &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Careers&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Community&lt;/a&gt;&lt;/li&gt; --&gt;
            &lt;/ul&gt;
          &lt;/nav&gt;
          &lt;button class=&quot;button | display-sm-none display-md-inline-flex&quot;&gt;Get Started&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/header&gt;
  
    &lt;main&gt;
      &lt;section class=&quot;hero | text-center-sm-only padding-block-900&quot;&gt;
        &lt;div class=&quot;container&quot;&gt;
          &lt;div class=&quot;even-columns&quot;&gt;
            &lt;div class=&quot;flow&quot;&gt;
              &lt;h1 class=&quot;fs-primary-heading fw-bold&quot;&gt;
                Vehicle tracking systems can offer companies big benefits.&lt;/h1&gt;
              &lt;p&gt;Manage makes it simple for software teams to plan day-to-day tasks while keeping the larger team goals in
                view.&lt;/p&gt;
              &lt;button class=&quot;button&quot;&gt;Get Started&lt;/button&gt;
            &lt;/div&gt;
            &lt;div class=&quot;hero__image&quot;&gt;
              &lt;img class=&quot;mx-auto&quot; src=&quot;images/gps.png&quot; alt=&quot;&quot;&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/section&gt;
  
      &lt;section class=&quot;sales-points | padding-block-900&quot;&gt;
        &lt;div class=&quot;container&quot;&gt;
          &lt;div class=&quot;even-columns&quot;&gt;
            &lt;div class=&quot;sales-points__blog flow text-center-sm-only&quot; style=&quot;--flow-spacer: 1.5rem&quot;&gt;
              &lt;h2 class=&quot;fs-secondary-heading fw-bold&quot;&gt;What technology we use?&lt;/h2&gt;
              &lt;p&gt;We use the state of the art tracking hardware,
                Teltonika FMB920 is compact and smart tracker with Bluetooth connectivity, 
                internal High Gain GNSS and GSM antennas and integrated backup battery.
                 FMB920 is designed for light vehicles tracking in applications like insurance telematics, 
                 rental cars, recovery of stolen cars, public safety services, delivery transport, taxi and much more. 
              &lt;/p&gt;
                &lt;div&gt;
                  &lt;img  src=&quot;images/tracker1.png&quot; alt=&quot;&quot;&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div&gt;
              &lt;ul class=&quot;numbered-items | flow&quot; role=&quot;list&quot;&gt;
                &lt;li&gt;
                  &lt;div class=&quot;flow&quot; style=&quot;--flow-spacer: 1em&quot;&gt;
                    &lt;h3 class=&quot;numbered-items__title | fs-600 fw-bold&quot;&gt;Accelerometer sensor&lt;/h3&gt;
                    &lt;p class=&quot;numbered-items__body&quot; data-width=&quot;wide&quot;&gt;
                      The FMB920 is packed with Accelerometer sensor to detect every possible driving senario,
                      Green Driving, Over Speeding detection, Jamming detection, GNSS Fuel Counter, DOUT Control Via Call, Excessive Idling detection, Unplug detection, Towing detection, Crash detection, Auto Geofence, Manual Geofence.&lt;/p&gt;
                  &lt;/div&gt;
                &lt;/li&gt;
                &lt;li&gt;
                  &lt;div class=&quot;flow&quot; style=&quot;--flow-spacer: 1em&quot;&gt;
                    &lt;h3 class=&quot;numbered-items__title | fs-600 fw-bold&quot;&gt;Rugged Build&lt;/h3&gt;
                    &lt;p class=&quot;numbered-items__body&quot; data-width=&quot;wide&quot;&gt;
                      The FMB920 is designed to withstand harsh environmental condition making it last for years.
                      Operating temperature (without battery) -40 °C to +85 °C,
                      Operating humidity  5% to 95% non-condensing,
                      Ingress Protection Rating   IP54,
                      Battery charge temperature  0 °C to +45 °C, Battery discharge temperature   -20 °C to +60 °C.&lt;/p&gt;
  
                  &lt;/div&gt;
                &lt;/li&gt;
                &lt;li&gt;
                  &lt;div class=&quot;flow&quot; style=&quot;--flow-spacer: 1em&quot;&gt;
                    &lt;h3 class=&quot;numbered-items__title | fs-600 fw-bold&quot;&gt;Mobile App For Live-Tracking&lt;/h3&gt;
                    &lt;p class=&quot;numbered-items__body&quot; data-width=&quot;wide&quot;&gt;
                      GUIDE GPS provide a mobile application for
                      tracking your vehicles live within the app,
                      after the inatallment of the tracking hardware.&lt;/p&gt;
  
                  &lt;/div&gt;
                &lt;/li&gt;
              &lt;/ul&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/section&gt;
  
      &lt;section class=&quot;carousel | padding-block-700  text-center&quot;&gt;
        &lt;h2 class=&quot;fs-secondary-heading fw-bold&quot;&gt;Mobile App&lt;/h2&gt;
        &lt;div class=&quot;hero__image&quot; &gt;
          &lt;img class=&quot;mx-auto&quot; width=&quot;300&quot; height=&quot;430&quot;  src=&quot;images/app.svg&quot; alt=&quot;&quot;&gt;
        &lt;/div&gt;
        &lt;ul class=&quot;slider&quot;&gt;
          &lt;li&gt;
            &lt;!-- &lt;img src=&quot;images/avatar-anisha.png&quot; alt=&quot;&quot;&gt; --&gt;
  
            &lt;div class=&quot;slider-content | flow&quot; style=&quot;--flow-spacer: 1rem&quot;&gt;
              &lt;h3 class=&quot;fw-bold text-accent-400&quot;&gt;Live Tracking&lt;/h3&gt;
              &lt;p data-width=&quot;wide&quot;&gt;
                The applicaton provide the ability to live track your vhechile anywhere.
              providing information on the time, distanc, fuel conusumption, and much more.&lt;/p&gt;
            &lt;/div&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;li&gt;
              &lt;!-- &lt;img src=&quot;images/avatar-anisha.png&quot; alt=&quot;&quot;&gt; --&gt;
    
              &lt;div class=&quot;slider-content | flow&quot; style=&quot;--flow-spacer: 1rem&quot;&gt;
                &lt;h3 class=&quot;fw-bold text-accent-400&quot;&gt;Live Tracking&lt;/h3&gt;
                &lt;p data-width=&quot;wide&quot;&gt;
                  The applicaton provide the ability to live track your vhechile anywhere.
                providing information on the time, distanc, fuel conusumption, and much more.&lt;/p&gt;
              &lt;/div&gt;
            &lt;/li&gt;
            &lt;li&gt;
            &lt;!-- &lt;img src=&quot;images/truck.jpg&quot; alt=&quot;&quot;&gt; --&gt;
  
            &lt;div class=&quot;slider-content | flow&quot; style=&quot;--flow-spacer: 1rem&quot;&gt;
              &lt;h3 class=&quot;fw-bold text-accent-400&quot;&gt;Track Your Entire Fleet&lt;/h3&gt;
              &lt;p data-width=&quot;wide&quot;&gt;
                With our App you will be alble to track
                multiple vechiles, with live location updates, time , speed,
                fuel conusumbtion, engine igntion, etc...
              &lt;/p&gt;
            &lt;/div&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;!-- &lt;img src=&quot;images/tracker1.png&quot; alt=&quot;&quot;&gt; --&gt;
  
            &lt;div class=&quot;slider-content | flow&quot; style=&quot;--flow-spacer: 1rem&quot;&gt;
              &lt;h3 class=&quot;fw-bold text-accent-400&quot;&gt;Hardware Monitring&lt;/h3&gt;
              &lt;p data-width=&quot;wide&quot;&gt;
                The App allows you to monitor your hardware &quot;GPS Device&quot;
                status, incase of dissconnection or signal failure.
                 &lt;/p&gt;
            &lt;/div&gt;
          &lt;/li&gt;
          &lt;li&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
        &lt;a class=&quot;btn btn-google&quot; href=&quot;https://play.google.com/store/apps/details?id=com.guidegpsclient.android&quot; title=&quot;Google Play&quot;&gt;Google Play&lt;/a&gt;
      &lt;/section&gt;
  
      &lt;section class=&quot;cta | padding-block-900 bg-accent-400 text-neutral-100&quot;&gt;
        &lt;div class=&quot;container&quot;&gt;
          &lt;div class=&quot;even-columns vertical-align-center&quot;&gt;
            &lt;div&gt;
              &lt;p class=&quot;fs-primary-heading fw-bold&quot;&gt;Secure Your Vhicles With Us.&lt;/p&gt;
            &lt;/div&gt;
            &lt;div class=&quot;justify-self-end-md&quot;&gt;
              &lt;button class=&quot;button&quot; data-type=&quot;inverted&quot;&gt;Call Us&lt;/button&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/section&gt;
    &lt;/main&gt;
  
    &lt;footer class=&quot;primary-footer | padding-block-700 bg-neutral-900 text-neutral-100&quot;&gt;
      &lt;div class=&quot;container&quot;&gt;
        &lt;div class=&quot;primary-footer-wrapper&quot;&gt;
          &lt;div class=&quot;primary-footer-logo-social&quot;&gt;
            &lt;a href=&quot;#&quot; aria-label=&quot;home&quot;&gt;
              &lt;svg class=&quot;logo&quot; width=&quot;146&quot; height=&quot;24&quot;&gt;
                &lt;use xlink:href=&quot;&quot;&gt;&lt;/use&gt;
              &lt;/svg&gt;
            &lt;/a&gt;
  
            &lt;ul class=&quot;social-list&quot; role=&quot;list&quot; aria-label=&quot;Social links&quot;&gt;
              &lt;li&gt;&lt;a aria-label=&quot;facebook&quot; href=&quot;#&quot;&gt;
                  &lt;svg class=&quot;social-icon&quot;&gt;
                    &lt;use xlink:href=&quot;images/social-icons.svg#icon-facebook&quot;&gt;&lt;/use&gt;
                  &lt;/svg&gt;&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a aria-label=&quot;youtube&quot; href=&quot;#&quot;&gt;
                  &lt;svg class=&quot;social-icon&quot;&gt;
                    &lt;use xlink:href=&quot;images/social-icons.svg#icon-youtube&quot;&gt;&lt;/use&gt;
                  &lt;/svg&gt;
                &lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a aria-label=&quot;twitter&quot; href=&quot;#&quot;&gt;
                  &lt;svg class=&quot;social-icon&quot;&gt;
                    &lt;use xlink:href=&quot;images/social-icons.svg#icon-twitter&quot;&gt;&lt;/use&gt;
                  &lt;/svg&gt;
                &lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a aria-label=&quot;pinterest&quot; href=&quot;#&quot;&gt;
                  &lt;svg class=&quot;social-icon&quot;&gt;
                    &lt;use xlink:href=&quot;images/social-icons.svg#icon-pinterest&quot;&gt;&lt;/use&gt;
                  &lt;/svg&gt;
                &lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a aria-label=&quot;instragram&quot; href=&quot;#&quot;&gt;
                  &lt;svg class=&quot;social-icon&quot;&gt;
                    &lt;use xlink:href=&quot;images/social-icons.svg#icon-instagram&quot;&gt;&lt;/use&gt;
                  &lt;/svg&gt;
                &lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div class=&quot;primary-footer-nav&quot;&gt;
            &lt;nav class=&quot;footer-nav&quot;&gt;
              &lt;ul class=&quot;flow&quot; style=&quot;--flow-spacer: 1em&quot; aria-label=&quot;Footer&quot; role=&quot;list&quot;&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Pricing&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Services&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
                &lt;!-- &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Careers&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Community&lt;/a&gt;&lt;/li&gt; --&gt;
                &lt;li&gt;&lt;a href=&quot;https://github.com/Altayeb1422/Privacy-policy-/blob/main/Privacy-policy&quot;&gt;Privacy Policy&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
            &lt;/nav&gt;
          &lt;/div&gt;
          &lt;div class=&quot;primary-footer-form&quot;&gt;
            &lt;form action=&quot;&quot;&gt;
              &lt;input type=&quot;email&quot;&gt;
              &lt;button class=&quot;button&quot; data-shadow=&quot;none&quot;&gt;Go&lt;/button&gt;
            &lt;/form&gt;
            &lt;p&gt;Copyright 2020. All Rights Reserved&lt;/p&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/footer&gt;
  
  
    &lt;script type=&quot;module&quot; src=&quot;/main.js&quot;&gt;&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>