Skip to content

Exceptions from DartSassHost #55

Open
@timheuer

Description

@timheuer

I just updated my app to the latest package here and now get runtime errors

SassCompilationException: Error: Value cannot be null. (Parameter 'name')
DartSassHost.JsonConverters.CompilationResultConverter.ReadResult(ref Utf8JsonReader reader)
DartSassHost.JsonConverters.CompilationResultConverter.Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
System.Text.Json.Serialization.JsonConverter<T>.TryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, ref ReadStack state, out T value)
System.Text.Json.Serialization.JsonConverter<T>.ReadCore(ref Utf8JsonReader reader, JsonSerializerOptions options, ref ReadStack state)
System.Text.Json.JsonSerializer.ReadFromSpan<TValue>(ReadOnlySpan<byte> utf8Json, JsonTypeInfo jsonTypeInfo, Nullable<int> actualByteCount)
System.Text.Json.JsonSerializer.ReadFromSpan<TValue>(ReadOnlySpan<char> json, JsonTypeInfo jsonTypeInfo)
System.Text.Json.JsonSerializer.Deserialize<TValue>(string json, JsonSerializerOptions options)
DartSassHost.UnifiedJsonSerializer.DeserializeObject<T>(string json)
DartSassHost.SassCompiler.CompileFile(string inputPath, string outputPath, string sourceMapPath, CompilationOptions options)
WebOptimizer.Sass.Compiler.ExecuteAsync(IAssetContext context)
WebOptimizer.Asset.ExecuteAsync(HttpContext context, IWebOptimizerOptions options)
WebOptimizer.AssetBuilder.BuildAsync(IAsset asset, HttpContext context, IWebOptimizerOptions options)
WebOptimizer.Taghelpers.LinkInlineHrefTagHelper.GetFileContentAsync(string route)
WebOptimizer.Taghelpers.LinkInlineHrefTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)
...

Looking at the DartSassHost project it is not listed as stable by the author

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions