After deploying my Web App on Linux and browsing to the site I get To import Sass files, you first need to install node-sass.

Simon Edwards 1 Reputation point
2020-05-08T09:42:36.11+00:00

When I deploy my React App which was created using Create-React-App to Azure Web App on Linux I get the following when I browse to the website?

To import Sass files, you first need to install node-sass.

When I run this locally everything is fine (Running from a Mac). I have checked the DevOps deployment log and that reports it installed node-sass without issue. I have also tried to delete the node-sass folder in node_modules and npm install. This added node-sass again without issue but still I get the error?

Has anyone come across this before or have any suggestions?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,259 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Simon Edwards 1 Reputation point
    2020-05-10T09:56:34.683+00:00

    Hi,

    No longer interested. I switched using the Live Sass Compiler in VSCode and linking the CSS directly to each React Component.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.