Author Message
NarcisC
Joined: Nov 16, 2020
Messages: 44
Offline
I am trying to compile Widgets ( v3.8 framework) against latest available node version ( >=18.5).
"npm install" fails with multiple errors.
it seems this is because of a sass incompatibility.

is this an known issue?
Siddharth
Joined: May 2, 2020
Messages: 1
Offline
@Narcis, this is what I got back from R&D.


I wanted to address the issue raised by NarcisC regarding Node and SASS on the devConnect program forum.

As per NarcisC's post, the compilation process is currently being carried out on Node version >=18.5. However, it is recommended to use Node version 12 and NPM version 6 for installing node modules & compiling workspaces, and I think it is also applicable for widgets.

To avoid any potential node & sass related issues, I suggest the following steps:
1. Install Node version 12.8.x during the package installation (node modules). You can use NVM to easily switch to the older version for this purpose.
2. Install the appropriate version of node-sass that matches your installed Node version. You can refer to the chart below for further details.

Please let me know if the information provided above is helpful or if you need any further assistance.

NarcisC
Joined: Nov 16, 2020
Messages: 44
Offline
Thank you.
Running against node v12.x did solve the issue.

Regards,
Narcis
Go to:   
Mobile view