Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Umbraco 13 / Iconic 12 Generate Class Issue #54

Closed
37Stars opened this issue Nov 14, 2024 · 4 comments
Closed

Umbraco 13 / Iconic 12 Generate Class Issue #54

37Stars opened this issue Nov 14, 2024 · 4 comments

Comments

@37Stars
Copy link

37Stars commented Nov 14, 2024

I have an Umbraco 13 website (actually several) I am trying to integrate Iconic into. These are running on dotnet 8.

This is my icon picker and it is reading the icons from the css files.
Screenshot 2024-11-14 102114

This is element that has the Icon Picker
Screenshot 2024-11-14 102142

This is the code that gets generated for the model.
Screenshot 2024-11-14 101940

And this is the error message I am getting.
Screenshot 2024-11-14 101924

Is there an updated version that works with Umbraco 13?

Thank You

@skartknet
Copy link
Owner

skartknet commented Nov 14, 2024

The issue is caused because you are probably generating your models in a class library instead of a Web project. To fix it you need to install the Microsoft.AspNetCore.Html.Abstractions Nuget package.

@37Stars
Copy link
Author

37Stars commented Nov 15, 2024

Adding the Abstractions nuget package did resolved the error. I was just hoping for a solution that didn't involve a deprecated package, but this does resolve that issue.

Now I am experiencing an issue with only a handful of fonts appearing when using it with an element on a document.

@skartknet
Copy link
Owner

What type of project do you have? I've just tried with a class library and I don't get any errors.

@skartknet
Copy link
Owner

This hasn't had any action for a while. I'll close it. Feel free to open it up again if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants