Trying to use astro-icon#v1. I've installed from github since it's not available on npm yet. I'm getting a map error.
Cannot read properties of undefined (reading 'map')
I've looked at the example project within the repo as well as referred to the documentation.
What am I doing wrong?
// astro config
import icon from "astro-icon";
export default defineConfig({
integrations: [
icon({
include: {
ri: ['*']
}
})
]
})
// component.astro
---
import { siteMeta, profiles } from "../site.config";
import { Icon } from "astro-icon";
---
<Icon
name={profile.icon}
width={24}
</Icon>
Dependencies:
"astro-icon": "github:natemoo-re/astro-icon#v1",
"@iconify-json/ri": "^1.1.9",
"svgo": "^3.0.2"