From 5638383bdde903434fda3867604431e1efc38777 Mon Sep 17 00:00:00 2001 From: Kevin Schweikert Date: Mon, 5 Oct 2026 18:35:17 +0200 Subject: [PATCH] fix(heroicons): return early if file not found --- installer/templates/phx_assets/heroicons.js.eex | 1 + 1 file changed, 1 insertion(+) diff --git a/installer/templates/phx_assets/heroicons.js.eex b/installer/templates/phx_assets/heroicons.js.eex index 990b7cbde9..3350c57225 100644 --- a/installer/templates/phx_assets/heroicons.js.eex +++ b/installer/templates/phx_assets/heroicons.js.eex @@ -19,6 +19,7 @@ module.exports = plugin(function({matchComponents, theme}) { }) matchComponents({ "hero": ({name, fullPath}) => { + if (!fullPath) return {}; let content = fs.readFileSync(fullPath).toString().replace(/\r?\n|\r/g, "") content = encodeURIComponent(content) let size = theme("spacing.6")