Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Error code 64 when running "npm run sass" in Blazor

$
0
0

I am doing a Blazor Application in Visual Studio 2022 and Net 8.. I have installed Node v20.18.0 and npm version 10.8.2

I added those lines in .csproj

<Target Name="CompileScopedScss" BeforeTargets="Compile"><ItemGroup><ScopedScssFiles Include="Features/**/*.razor.scss" /></ItemGroup><Exec Command="npm run sass –– %(ScopedScssFiles.Identity) %(relativedir)%(filename).css" /></Target>

I convert all sass pages in css. But I have a compile error

The command npm run sass -- Features/pages....... exited with code 64...

If I remove line

<Exec Command="npm run sass –– %(ScopedScssFiles.Identity) %(relativedir)%(filename).css" />

the application compile...

I took this line from an Old Blazor tutorial...

How can I replace this line and solve the problem?

Thanks


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>