Comments (11)
Hello @realLiangshiwei did you make sure to enable interactivity?
from blazorise.
I also have a similar issue with the DatePicker on v1.4.0 and net7.0 project. And it happens only on deployed app. If I run the app from Visual Studio everything works.
Microsoft.AspNetCore.Components.Web.ErrorBoundary[0]
Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: https://mysite.com/_content/Blazorise/datePicker.js?v=1.4.0.0
TypeError: Failed to fetch dynamically imported module: https://mysite.com/_content/Blazorise/datePicker.js?v=1.4.0.0
at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__16`1[[Microsoft.JSInterop.IJSObjectReference, Microsoft.JSInterop, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Blazorise.Modules.BaseJSModule.InvokeSafeVoidAsync(String identifier, Object[] args)
at Blazorise.Extensions.ModuleExtensions.SafeDestroy(IJSDestroyableModule module, ElementReference elementRef, String elementId)
at Blazorise.DatePicker`1.<DisposeAsync>d__4[[System.DateTime, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at Blazorise.BaseAfterRenderComponent.DisposeAsync()
Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: https://mysite.com/_content/Blazorise/datePicker.js?v=1.4.0.0
TypeError: Failed to fetch dynamically imported module: https://mysite.com/_content/Blazorise/datePicker.js?v=1.4.0.0
at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__16`1[[Microsoft.JSInterop.IJSObjectReference, Microsoft.JSInterop, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at Blazorise.Modules.BaseJSModule.InvokeSafeVoidAsync(String identifier, Object[] args)
at Blazorise.Extensions.ModuleExtensions.SafeDestroy(IJSDestroyableModule module, ElementReference elementRef, String elementId)
at Blazorise.DatePicker`1.<DisposeAsync>d__4[[System.DateTime, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at Blazorise.BaseAfterRenderComponent.DisposeAsync()
from blazorise.
@DenisChimbor Please see if this helps you
https://blazorise.com/support/issues/115/blazorise-doesnt-dynamically-resolve-scripts-if-aspnetcore-environment-isnt-set-to-development
from blazorise.
did you make sure to enable interactivity?
Of course, other components work fine except DatePicker
from blazorise.
I think it's a simple problem, wrong filename
https://github.com/Megabit/Blazorise/blob/master/Source/Blazorise/wwwroot/inputMask.js
- inputmask.js
- inputMask.js
from blazorise.
I kinda doubt that is the problem. I think the file still gets resolved. WE have apps in 1.4.
Have you tried visiting the url directly with the original path and also with the path that you think is wrong? Is the resource returned?
https://localhost:7231/_content/Blazorise/inputmask.js?v=1.4.0.0
https://localhost:7231/_content/Blazorise/inputMask.js?v=1.4.0.0
from blazorise.
When you use a non-windows system, file name is case-sensitive
The URLs for content exposed with UseDirectoryBrowser and UseStaticFiles are subject to the case sensitivity and character restrictions of the underlying file system. For example, Windows is case insensitive, but macOS and Linux aren't.
from blazorise.
Ah, makes sense, the linux fs is case sensitive indepedent of the browser. Thanks for the help troubleshooting it does seem you're right. We'll fix it for next patch. You can try loading the resource manually but I'm not sure it will help.
<script src="_content/Blazorise/inputMask.js?v=1.4.0.0" type="module"></script>from blazorise.
Yeah, thanks for looking into this. It's such a dumb mistake from us. I would never guess it. 😅
from blazorise.
I'd like to ask when will release the patch version?
from blazorise.
Possibly by the end of next week.
from blazorise.
Related Issues (20)
- Docs : Fix grammatical error, rename tipically to typically
- Remove all package.json from solution projects
- Use latest C# language version HOT 5
- Disable item in DropdownList HOT 4
- [Bug]: Null Reference Exception in Carousel when navigating away while carousel is animating
- [Bug]: IntervalBeforeClose does not work in NotificationService
- [Bug]: max-width on DataGridColumn does not work HOT 4
- [Bug]: DataGrid When using ReadData, click the header to sort or click the button of the paging component, the checkbox of DataGridMultiSelectColumn cannot remain selected. HOT 8
- [Bug]: Cropper does not display base64 image sources
- [Bug]: DataGrid DetailsRowTemplate doesn't show if event calls Mediator.Send (MediatR) HOT 4
- Blog: roadmap
- DataGrid : PagerElementPosition
- Migarte Animate extension to v4
- Datepicker - Clear HOT 2
- [Bug]: RichtTextEdit - Cursor jumping to starting point of editor HOT 2
- [Bug]: DataGrid batch edit SOMETIMES saves if using tab in In cell mode HOT 4
- Show arrow for autocomplete HOT 6
- Autocomplete : Checkbox Menu closes when an item is unselected
- [Bug]: SignaturePad not rendering Value parameter HOT 8
- [Bug]: Width and Height .Is66/.Is33 properties do not work for Bootstrap 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blazorise.