Open timheuer opened 2 years ago
@Taritsyn
@timheuer What versions of packages are you currently using?
<PackageReference Include="LigerShark.WebOptimizer.Core" Version="3.0.368" />
<PackageReference Include="LigerShark.WebOptimizer.Sass" Version="3.0.91" />
When it throws exception, it is on a Razor page where I have:
<meta name="description" content="@ViewData["Description"]" />
in the <head>
of my layout component.
It is also important to know the versions of the following packages: DartSassHost, JavaScriptEngineSwitcher.V8 and Microsoft.ClearScript.V8.Native.*.
I would also want to know the version of ASP.NET Core and under which operating system the web application run.
It will be very difficult to determine the causes of this error, because from description (Value cannot be null. (Parameter 'name')
) it can be seen that it occurred in JS code when calling .NET method.
So far I have not been able to reproduce this error.
@timheuer Did version 3.0.84 of the LigerShark.WebOptimizer.Sass work without errors?
No the same error applies when I use 3.0.84
Any solution for this?
I am getting the same error when upgrading from .NET 6 to .NET 7 RC1
Hello!
I also get some error after move project from NET 5.0 to NET 7.0
Current use LigerShark.WebOptimizer.Sass - 3.0.84 ( 3.0.91 too with error)
@Temoxa
This is a syntax error in line 21 column 65 of the /scss/landing/main.scss
file.
@Temoxa
This is a syntax error in line 21 column 65 of the
/scss/landing/main.scss
file.
Why its worked in NET 5.0 ? Scss file was not modifyed
Also in stacktace error Exceptions from DartSassHost
was too
Scss file was not modifyed
Are you sure about this?
Scss file was not modifyed
Are you sure about this?
yes, of cource
Hello, @Temoxa!
Try to reproduce this error in the form of demo project and post a link to it in this discussion.
SassCompilationException: Error: (0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 3rem) isn't a valid CSS value.
at wwwroot/scss/landing/main.scss:30:65 -> $negative-spacers: if( $enable-negative-margins, negativify-map($spacers), null );
as on my screenshot upper
in previos veriosn compiled is OK, maybe error in Bootstrap ?
@Temoxa, I initially said that the problem is in SCSS code. It is possible that the new version of the Bootstrap uses a newer version of the Sass language.
For now, try upgrading the DartSassHost package to version 1.0.0 Preview 8. Within a few days I will release a DartSassHost with support for the the Dart Sass version 1.56.1.
Hello, @Temoxa!
Dart Sass Host version 1.0.0 Preview 9 released.
Hello, @Temoxa!
Dart Sass Host version 1.0.0 Preview 9 released.
hello! :)
I removed unused function in scss and project successful run
But i will try new version, thanks!
I just updated my app to the latest package here and now get runtime errors
Looking at the DartSassHost project it is not listed as stable by the author