Blazored / Typeahead

Typeahead control for Blazor applications
https://blazored.github.io/Typeahead/
MIT License
444 stars 103 forks source link

Could not load type 'Microsoft.AspNetCore.Components.ElementRef' from assembly 'Microsoft.AspNetCore.Components #24

Closed dolare1 closed 5 years ago

dolare1 commented 5 years ago

I recently upgraded from ASP.NET Core 3.0 Preview 7 to Preview 8 and noticing below error:

Could not load type 'Microsoft.AspNetCore.Components.ElementRef' from assembly 'Microsoft.AspNetCore.Components

I am suspecting it is due to a breaking change as mentioned in this link: https://devblogs.microsoft.com/aspnet/asp-net-core-and-blazor-updates-in-net-core-3-0-preview-8/

"Rename ElementRef to ElementReference."

Any pointers?

dolare1 commented 5 years ago

Looks like I need to reinstall the package? Is that correct?

chrissainty commented 5 years ago

Hi @dolare1, you need to upgrade to the latest version of the package. Once you've done that, I would suggest doing a full clean and rebuild of your solution and emptying your browser cache.

There are currently a few issues with the new Razor Class Library project so you may find issues with the blazored-typeahead.js file not being included. If you hit this issue then the only option right now is to copy the JS file from this repo into your projects wwwroot folder and reference it from there.

Hope that all makes sense.

dolare1 commented 5 years ago

Thanks, that worked. I just had to reinstall the package.