Despite this lib having an import route for astro import Icons from "@iconify/unplugin/astro"; it doesn't work
19:34:14 [ERROR] [vite] ✗ Build failed in 119ms
[vite]: Rollup failed to resolve import "virtual:iconify/mdi-light/bell" from "/Users/alexanderniebuhr/Developer/Projects/alexanderniebuhr/garden/src/layouts/Post.astro".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
Stack trace:
at viteLog (file:///Users/alexanderniebuhr/Developer/Projects/alexanderniebuhr/garden/node_modules/.pnpm/vite@7.3.1_@types+node@25.2.1_jiti@2.6.1_lightningcss@1.31.1_yaml@2.8.2/node_modules/vite/dist/node/chunks/config.js:33635:57)
at onLog (file:///Users/alexanderniebuhr/Developer/Projects/alexanderniebuhr/garden/node_modules/.pnpm/vite@7.3.1_@types+node@25.2.1_jiti@2.6.1_lightningcss@1.31.1_yaml@2.8.2/node_modules/vite/dist/node/chunks/config.js:33467:4)
at Object.logger [as onLog] (file:///Users/alexanderniebuhr/Developer/Projects/alexanderniebuhr/garden/node_modules/.pnpm/rollup@4.57.1/node_modules/rollup/dist/es/shared/node-entry.js:22945:9)
at file:///Users/alexanderniebuhr/Developer/Projects/alexanderniebuhr/garden/node_modules/.pnpm/rollup@4.57.1/node_modules/rollup/dist/es/shared/node-entry.js:21647:26
ELIFECYCLE Command failed with exit code 1.
And when switching to import Icons from "@iconify/unplugin/vite"; it does generate the css, but not the svg
Despite this lib having an import route for astro
import Icons from "@iconify/unplugin/astro";it doesn't workAnd when switching to
import Icons from "@iconify/unplugin/vite";it does generate the css, but not the svg