geeklearningio / gl-vsts-tasks-yarn

Yarn Package Manager Visual Studio Team Services Build and Release Management extensions
MIT License
52 stars 18 forks source link

Yarn tasks suddenly failing with node-sass module not found error since Dec1 2021 #104

Closed YarnUser31 closed 2 years ago

YarnUser31 commented 2 years ago

Before opening an issue please read this.

Are you reporting a bug or a feature request ?

Description

Task geeklearningio.gl-vsts-tasks-yarn.yarn-task.Yarn@2 failing since Dec1 suddenly with below error ERROR in Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Cannot find module 'node-sass' Require stack:

Insert your description here

Expected behavior

Describe the expected behavior

Reproduction

Insert reproduction steps here

MANDATORY FOR BUGS: Insert debug trace

ERROR in Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Cannot find module 'node-sass' Require stack:

In order to allow us to quickly reproduce you issue please include a link to a reproduction repository

System information

VSTS or TFS:

Agent:

OS:

*Yarn version:1.5 Yarn version**

*Node version:8 Node version**

sandorfr commented 2 years ago

I don't think this is related to the task. But rather to one of your dependency.

also worth noting Yarn now comes in standard on Azure pipelines image and you may not need this task at all anymore, you can just use a script task instead.

artola commented 2 years ago

@YarnUser31 This problem is related to node-sass and azure. Azure pipelines were updated on November 29 to Node 16 and your versions of node-sass probably is valid up to v14 Upgrade your node-sass (since May 2021 supports Node v16) or change the pipeline setting to use Node v14