-
Notifications
You must be signed in to change notification settings - Fork 35
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
Could not find 'BlazorExtensions' in 'window' (Server mode) #35
Comments
If i compile the .ts scripts, put in wwwroot and init the script directly in _host.cshtml it works, so I think is related to #24 |
Same issue here. I'm on preview 8. blazor.server.js:15 [2019-08-23T13:47:37.052Z] Error: Microsoft.JSInterop.JSException: Could not find 'BlazorExtensions' in 'window'. |
Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer: Warning: Unhandled exception rendering component: Could not find 'BlazorExtensions' in 'window'. Microsoft.JSInterop.JSException: Could not find 'BlazorExtensions' in 'window'. Microsoft.JSInterop.JSException: Could not find 'BlazorExtensions' in 'window'. |
Can you please try with the latest packages? |
@galvesribeiro with the 1.1.0-preview1 it stays the same error message as dtitovgis posted before. |
Add this to your
Should the |
I downloaded the files and tried to compile them and a error is being thrown. |
Does someone compiled this successfully? |
Compiled JS for 1.1.0-preview3: blazor.extensions.storage.js.zip |
@rovercoder everything it's working again! Is this gonna get fixed later? |
hope so! |
I had the same problen with the SignalR package using the 3.1.0-preview4.19579.2 of Blazor and the 1.1.0-preview3 of SIgnalR |
I've tried using the js file that @rovercoder linked but it didn't help so I've been looking for other discussions about this problem. It looks like BlazorExtensions/SignalR#66 matches and also includes a fork with a potential workaround. The workaround includes adding |
add below lines in head section of _Host.cshtml <script src="_content/MatBlazor/dist/matBlazor.js"></script> |
Disable your adblocker (Adblocker plus), had this exact issue on chrome, whitelisted localhost, problem solved |
I had a similar experience in IE11. Had to ensure I was using JS 5 not 6. Used Babel to convert and all worked well.
From: willoftw <[email protected]>
Sent: Monday, August 24, 2020 4:50 AM
To: BlazorExtensions/Storage <[email protected]>
Cc: Sean Moran <[email protected]>; Comment <[email protected]>
Subject: Re: [BlazorExtensions/Storage] Could not find 'BlazorExtensions' in 'window' (Server mode) (#35)
[External Email]
Disable your adblocker (Adblocker plus), had this exact issue on chrome, whitelisted localhost, problem solved
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#35 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMH6PASOLE7S7IEEGTQVJO3SCISVBANCNFSM4ILMGDLQ>.
|
|
In a new project, using server side template, I added the reference to BlazorExtensions storage (0.2.1), added the services.AddStorage() line to register the services. If I modify the counter example to this:
`@page "/counter"
@using Blazor.Extensions.Storage
@Inject SessionStorage sessionStorage
@Inject LocalStorage localStorage
Counter
Current count: @currentCount
<button class="btn btn-primary" @OnClick="IncrementCount">Click me
@code {
int currentCount = 0;
}
`
I receive the error Could not find 'BlazorExtensions' in 'window'.
blazor.server.js is present in Sources when I enter in dev mode in chrome.
dotnet --version outputs 3.0.100-preview7-012821.
Is that correct?
The text was updated successfully, but these errors were encountered: