Skip to content

fix: support vue hmr #76

fix: support vue hmr

fix: support vue hmr #76

Triggered via pull request December 5, 2024 05:30
Status Failure
Total duration 5m 43s
Artifacts

ci.yml

on: pull_request
Get changed files
6s
Get changed files
Lint: node-20, ubuntu-latest
1m 26s
Lint: node-20, ubuntu-latest
Matrix: test
Build & Test Passed or Skipped
0s
Build & Test Passed or Skipped
Build & Test Failed
0s
Build & Test Failed
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 6 warnings
packages/vite/src/node/__tests__/build.spec.ts > build > file hash should change when pure css chunk changes: packages/vite/src/node/__tests__/build.spec.ts#L748
AssertionError: the assets/index-DhXWseme.js chunk has the same hash but different contents between builds: expected 'const __vite__mapDeps=(i,m=__vite__ma…' to deeply equal 'const __vite__mapDeps=(i,m=__vite__ma…' - Expected + Received - const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_foo-dekYVk4v.js","assets/_foo-3otn9bEy.css","assets/_baz-8tIYWJw7.css","assets/_bar-CYtjVUa5.js","assets/_bar-1BxK95df.css"])))=>i.map(i=>d[i]); + const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_foo-CDBDVurT.js","assets/_foo-3otn9bEy.css","assets/_baz-8tIYWJw7.css","assets/_bar-DiAhXE68.js","assets/_bar-1BxK95df.css"])))=>i.map(i=>d[i]); - (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&l(n)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const v="modulepreload",E=function(f){return"/"+f},h={},p=function(s,c,l){let e=Promise.resolve();if(c&&c.length>0){const n=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),m=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.allSettled(c.map(o=>{if(o=E(o,l),o in h)return;h[o]=!0;const u=o.endsWith(".css"),y=u?'[rel="stylesheet"]':"";if(!!l)for(let a=n.length-1;a>=0;a--){const d=n[a];if(d.href===o&&(!u||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${y}`))return;const i=document.createElement("link");if(i.rel=u?"stylesheet":v,u||(i.as="script"),i.crossOrigin="",i.href=o,m&&i.setAttribute("nonce",m),document.head.appendChild(i),u)return new Promise((a,d)=>{i.addEventListener("load",a),i.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})}))}function t(n){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=n,window.dispatchEvent(r),!r.defaultPrevented)throw n}return e.then(n=>{for(const r of n||[])r.status==="rejected"&&t(r.reason);return s().catch(t)})};window.addEventListener("click",()=>{p(()=>import("./_foo-dekYVk4v.js"),__vite__mapDeps([0,1,2]))});window.addEventListener("click",()=>{p(()=>import("./_bar-CYtjVUa5.js"),__vite__mapDeps([3,4,2]))}); + (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&l(n)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const v="modulepreload",E=function(f){return"/"+f},h={},p=function(s,c,l){let e=Promise.resolve();if(c&&c.length>0){const n=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),m=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.allSettled(c.map(o=>{if(o=E(o,l),o in h)return;h[o]=!0;const u=o.endsWith(".css"),y=u?'[rel="stylesheet"]':"";if(!!l)for(let a=n.length-1;a>=0;a--){const d=n[a];if(d.href===o&&(!u||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${y}`))return;const i=document.createElement("link");if(i.rel=u?"stylesheet":v,u||(i.as="script"),i.crossOrigin="",i.href=o,m&&i.setAttribute("
Build&Test: node-18, ubuntu-latest
Process completed with exit code 1.
packages/vite/src/node/__tests__/build.spec.ts > build > file hash should change when pure css chunk changes: packages/vite/src/node/__tests__/build.spec.ts#L748
AssertionError: the assets/index-DhXWseme.js chunk has the same hash but different contents between builds: expected 'const __vite__mapDeps=(i,m=__vite__ma…' to deeply equal 'const __vite__mapDeps=(i,m=__vite__ma…' - Expected + Received - const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_foo-dekYVk4v.js","assets/_foo-3otn9bEy.css","assets/_baz-8tIYWJw7.css","assets/_bar-CYtjVUa5.js","assets/_bar-1BxK95df.css"])))=>i.map(i=>d[i]); + const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_foo-DAiqd_VM.js","assets/_foo-3otn9bEy.css","assets/_baz-8tIYWJw7.css","assets/_bar-DeM4UPAy.js","assets/_bar-1BxK95df.css"])))=>i.map(i=>d[i]); - (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&l(n)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const v="modulepreload",E=function(f){return"/"+f},h={},p=function(s,c,l){let e=Promise.resolve();if(c&&c.length>0){const n=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),m=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.allSettled(c.map(o=>{if(o=E(o,l),o in h)return;h[o]=!0;const u=o.endsWith(".css"),y=u?'[rel="stylesheet"]':"";if(!!l)for(let a=n.length-1;a>=0;a--){const d=n[a];if(d.href===o&&(!u||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${y}`))return;const i=document.createElement("link");if(i.rel=u?"stylesheet":v,u||(i.as="script"),i.crossOrigin="",i.href=o,m&&i.setAttribute("nonce",m),document.head.appendChild(i),u)return new Promise((a,d)=>{i.addEventListener("load",a),i.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})}))}function t(n){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=n,window.dispatchEvent(r),!r.defaultPrevented)throw n}return e.then(n=>{for(const r of n||[])r.status==="rejected"&&t(r.reason);return s().catch(t)})};window.addEventListener("click",()=>{p(()=>import("./_foo-dekYVk4v.js"),__vite__mapDeps([0,1,2]))});window.addEventListener("click",()=>{p(()=>import("./_bar-CYtjVUa5.js"),__vite__mapDeps([3,4,2]))}); + (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&l(n)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const v="modulepreload",E=function(f){return"/"+f},h={},p=function(s,c,l){let e=Promise.resolve();if(c&&c.length>0){const n=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),m=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.allSettled(c.map(o=>{if(o=E(o,l),o in h)return;h[o]=!0;const u=o.endsWith(".css"),y=u?'[rel="stylesheet"]':"";if(!!l)for(let a=n.length-1;a>=0;a--){const d=n[a];if(d.href===o&&(!u||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${y}`))return;const i=document.createElement("link");if(i.rel=u?"stylesheet":v,u||(i.as="script"),i.crossOrigin="",i.href=o,m&&i.setAttribute("
Build&Test: node-22, ubuntu-latest
Process completed with exit code 1.
packages/vite/src/node/__tests__/build.spec.ts > build > file hash should change when pure css chunk changes: packages/vite/src/node/__tests__/build.spec.ts#L748
AssertionError: the assets/index-DhXWseme.js chunk has the same hash but different contents between builds: expected 'const __vite__mapDeps=(i,m=__vite__ma…' to deeply equal 'const __vite__mapDeps=(i,m=__vite__ma…' - Expected + Received - const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_foo-DAiqd_VM.js","assets/_foo-3otn9bEy.css","assets/_baz-XbyN5Pu5.css","assets/_bar-DeM4UPAy.js","assets/_bar-1BxK95df.css"])))=>i.map(i=>d[i]); + const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_foo-BvXVAGUn.js","assets/_foo-3otn9bEy.css","assets/_baz-XbyN5Pu5.css","assets/_bar-DseVKGsv.js","assets/_bar-1BxK95df.css"])))=>i.map(i=>d[i]); - (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&l(n)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const v="modulepreload",E=function(f){return"/"+f},h={},p=function(s,c,l){let e=Promise.resolve();if(c&&c.length>0){const n=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),m=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.allSettled(c.map(o=>{if(o=E(o,l),o in h)return;h[o]=!0;const u=o.endsWith(".css"),y=u?'[rel="stylesheet"]':"";if(!!l)for(let a=n.length-1;a>=0;a--){const d=n[a];if(d.href===o&&(!u||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${y}`))return;const i=document.createElement("link");if(i.rel=u?"stylesheet":v,u||(i.as="script"),i.crossOrigin="",i.href=o,m&&i.setAttribute("nonce",m),document.head.appendChild(i),u)return new Promise((a,d)=>{i.addEventListener("load",a),i.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})}))}function t(n){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=n,window.dispatchEvent(r),!r.defaultPrevented)throw n}return e.then(n=>{for(const r of n||[])r.status==="rejected"&&t(r.reason);return s().catch(t)})};window.addEventListener("click",()=>{p(()=>import("./_foo-DAiqd_VM.js"),__vite__mapDeps([0,1,2]))});window.addEventListener("click",()=>{p(()=>import("./_bar-DeM4UPAy.js"),__vite__mapDeps([3,4,2]))}); + (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&l(n)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const v="modulepreload",E=function(f){return"/"+f},h={},p=function(s,c,l){let e=Promise.resolve();if(c&&c.length>0){const n=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),m=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.allSettled(c.map(o=>{if(o=E(o,l),o in h)return;h[o]=!0;const u=o.endsWith(".css"),y=u?'[rel="stylesheet"]':"";if(!!l)for(let a=n.length-1;a>=0;a--){const d=n[a];if(d.href===o&&(!u||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${y}`))return;const i=document.createElement("link");if(i.rel=u?"stylesheet":v,u||(i.as="script"),i.crossOrigin="",i.href=o,m&&i.setAttribute("
Build&Test: node-20, ubuntu-latest
Process completed with exit code 1.
packages/vite/src/node/__tests__/build.spec.ts > build > file hash should change when pure css chunk changes: packages/vite/src/node/__tests__/build.spec.ts#L748
AssertionError: the assets/index-DhXWseme.js chunk has the same hash but different contents between builds: expected 'const __vite__mapDeps=(i,m=__vite__ma…' to deeply equal 'const __vite__mapDeps=(i,m=__vite__ma…' - Expected + Received - const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_foo-dekYVk4v.js","assets/_foo-3otn9bEy.css","assets/_baz-8tIYWJw7.css","assets/_bar-CYtjVUa5.js","assets/_bar-1BxK95df.css"])))=>i.map(i=>d[i]); + const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_foo-DAiqd_VM.js","assets/_foo-3otn9bEy.css","assets/_baz-8tIYWJw7.css","assets/_bar-DeM4UPAy.js","assets/_bar-1BxK95df.css"])))=>i.map(i=>d[i]); - (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&l(n)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const v="modulepreload",E=function(f){return"/"+f},h={},p=function(s,c,l){let e=Promise.resolve();if(c&&c.length>0){const n=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),m=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.allSettled(c.map(o=>{if(o=E(o,l),o in h)return;h[o]=!0;const u=o.endsWith(".css"),y=u?'[rel="stylesheet"]':"";if(!!l)for(let a=n.length-1;a>=0;a--){const d=n[a];if(d.href===o&&(!u||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${y}`))return;const i=document.createElement("link");if(i.rel=u?"stylesheet":v,u||(i.as="script"),i.crossOrigin="",i.href=o,m&&i.setAttribute("nonce",m),document.head.appendChild(i),u)return new Promise((a,d)=>{i.addEventListener("load",a),i.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})}))}function t(n){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=n,window.dispatchEvent(r),!r.defaultPrevented)throw n}return e.then(n=>{for(const r of n||[])r.status==="rejected"&&t(r.reason);return s().catch(t)})};window.addEventListener("click",()=>{p(()=>import("./_foo-dekYVk4v.js"),__vite__mapDeps([0,1,2]))});window.addEventListener("click",()=>{p(()=>import("./_bar-CYtjVUa5.js"),__vite__mapDeps([3,4,2]))}); + (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))l(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&l(n)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function l(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();const v="modulepreload",E=function(f){return"/"+f},h={},p=function(s,c,l){let e=Promise.resolve();if(c&&c.length>0){const n=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),m=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));e=Promise.allSettled(c.map(o=>{if(o=E(o,l),o in h)return;h[o]=!0;const u=o.endsWith(".css"),y=u?'[rel="stylesheet"]':"";if(!!l)for(let a=n.length-1;a>=0;a--){const d=n[a];if(d.href===o&&(!u||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${y}`))return;const i=document.createElement("link");if(i.rel=u?"stylesheet":v,u||(i.as="script"),i.crossOrigin="",i.href=o,m&&i.setAttribute("
Build&Test: node-22, macos-latest
Process completed with exit code 1.
Build&Test: node-22, windows-latest
Process completed with exit code 1.
Get changed files
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build&Test: node-18, ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build&Test: node-22, ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build&Test: node-20, ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint: node-20, ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build & Test Failed
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636