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")