ngneat / svg-icon

👻 A lightweight library that makes it easier to use SVG icons in your Angular Application
https://netbasal.com
MIT License
257 stars 35 forks source link

Cannot use `SvgIconComponent` in standalone component #127

Closed Ling-ling-Ding closed 1 year ago

Ling-ling-Ding commented 1 year ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

Tried to import SvgIconComponent in standalone components, but got an error The component 'SvgIconComponent' appears in 'imports', but is not standalone and cannot be imported directly. It must be imported via an NgModule. (@ngneat/svg-icon version => 4.1.4)

Expected behavior

SvgIconComponent should be a standalone component

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


Angular version: 15.1.2


Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: XX  
- Platform:  

Others: