cloudcrate / BlazorStorage

A library for Blazor local and session storage support.
MIT License
113 stars 19 forks source link

JSInterop.JSException after only adding the script and .AddStorage() #24

Open Regenhardt opened 4 years ago

Regenhardt commented 4 years ago

For some reason I can't get this to work. I'm using Blazor 3.2prev1. I added .AddStorage() to the services. I added <script src="_content/Cloudcrate.AspNetCore.Blazor.Browser.Storage/Storage.js"></script>after the blazor.webassembly.js script. I removed any other code that might reference to LocalStorage.

As soon as I try to render a component, I get a JSException: String contains invalid character.

Any idea what I might have done wrong here?

image