-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
InvalidOperationException: Could not find a resource of type 'script' named 'nouislider' with version '15.5.1'. #11821
Comments
I am guessing your Page type has a custom part or uses a custom view that depends on scripted named "nouislider" make sure that script is registered in in the IoC container. search your project for "nouislider" and you should see where it's being used and then find the script that should be registering that resource. |
Searching for 'nouislider' within my solution was the first thing I did. There were no hits at all. I do not even know that this component is about. I thought it was something internal from OrdchardCore, definitely not mine. Any more ideas? |
nouislider is a new dependency that I changed as part of moving to Bootstrap 5. The resource should be part of the ResourceManager. OrchardCore/src/OrchardCore.Modules/OrchardCore.Resources/ResourceManagementOptionsConfiguration.cs Lines 203 to 216 in e3ab433
As you can see it has been updated to 15.6.0 |
I can see that there is a reference to that change in the What's Changed notes for v1.4.0:
What I do not understand is how the downloaded binaries for v1.4.0 from NuGet are still referencing nouislider v15.5.1. At least, that's what this exception suggests. |
Here I'm taking branch release/1.4 and it has a reference to 15.6.0 OrchardCore/src/OrchardCore.Modules/OrchardCore.Resources/ResourceManagementOptionsConfiguration.cs Lines 203 to 216 in 49cc18f
Ok, I found the issue. OrchardCore/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/NumericField-Slider.Edit.cshtml Line 15 in e3ab433
Bad update of dependencies. Maybe we should never pass the version on the script tag. |
Just for info, if we still need to differentiate some versions, as I remember we can also specify only part of the version e.g. |
We are in the process of updating our OrchardCore site, running OrchardCore.Application.Cms.Targets 1.3.0 to the new 1.4.0 version.
The site seems to render just fine, but when browsing to the admin pages, whenever we try to edit any page, the following exception appears:
The full exception message follows:
We are using a custom Theme, but changing back to the default theme yields the same results.
This error only happens for content elements with content type = 'Page'. We have other content types with elements that are working just fine and can be edited without a glitch.
Any hint to where should we start looking to fix this? Thanks.
The text was updated successfully, but these errors were encountered: