Closed rhiskey closed 3 years ago
So the problem here is that the JavaScript utilities of the BlazorExtensions.Storage
library are not available in the JavaScript execution context.
Have you added the references listed under the 3rd item of the 'How to use' section of the readme to your index.html
, specifically the blazor.extensions.storage.js
reference?
<script src="_content/Caerostris.Services.Spotify/blazor.extensions.storage.js"></script>
If so, is the resource available at https://localhost:<port>/_content/Caerostris.Services.Spotify/blazor.extensions.storage.js
? Does the network request succeed when your app is loading?
If all of the above questions can be answered with a clear 'yes', then I'll need access to the source code of your solution so that I can reproduce the issue locally.
Thank you for reporting the issue.
So the problem here is that the JavaScript utilities of the
BlazorExtensions.Storage
library are not available in the JavaScript execution context.Have you added the references listed under the 3rd item of the 'How to use' section of the readme to your
index.html
, specifically theblazor.extensions.storage.js
reference?<script src="_content/Caerostris.Services.Spotify/blazor.extensions.storage.js"></script>
If so, is the resource available at
https://localhost:<port>/_content/Caerostris.Services.Spotify/blazor.extensions.storage.js
? Does the network request succeed when your app is loading?If all of the above questions can be answered with a clear 'yes', then I'll need access to the source code of your solution so that I can reproduce the issue locally.
Thank you for reporting the issue.
So the problem here is that the JavaScript utilities of the
BlazorExtensions.Storage
library are not available in the JavaScript execution context.Have you added the references listed under the 3rd item of the 'How to use' section of the readme to your
index.html
, specifically theblazor.extensions.storage.js
reference?<script src="_content/Caerostris.Services.Spotify/blazor.extensions.storage.js"></script>
If so, is the resource available at
https://localhost:<port>/_content/Caerostris.Services.Spotify/blazor.extensions.storage.js
? Does the network request succeed when your app is loading?If all of the above questions can be answered with a clear 'yes', then I'll need access to the source code of your solution so that I can reproduce the issue locally.
Thank you for reporting the issue.
Yes, resourse is avalible
Reopened my solution at different machine, edit <TargetFramework>net5.0</TargetFramework>
and issue has gone away.
Added class library to my Blazor Web-Assembly solution (.net 5.0) and get this error when loading first page: