I encounter the same issue.
I fix it by adding "rollup-plugin-sass": "1.2.4" as dev dependencies on your packages.json, and perform “npm install” , maybe until mendix update their pluggable-widget-tools.
I’ve seen the fix merged into the repository (fix(pluggable-widgets-tools): downgrade rollup-plugin-sass version by diego-antonelli · Pull Request #858 · mendix/widgets-resources · GitHub) but not sure when a new version is going to be released.
i Have a generic Solution for everything :
A- in Start/CMD
1- npm install –g npm@8.6.0
2- npm install –g yo
3- npm install –g @mendix/generator-widget
4- npm install @mendix/pluggable-widgets-tools --legacy-peer-deps
B- in your widget Folder :
B.1 - in package.json Change the @mendix/pluggable-widgets-tools Version in the devDependencies object to :
...............},
//------------------------------------------------
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^9.20.0"
},
//------------------------------------------------
"dependencies": { ....
B.2 open the Terminal (CMD) in your widget folder and run the following command
2- npm i
i Have a generic Solution for everything :
A- in Start/CMD
1- npm install –g npm@8.6.0
2- npm install –g yo
3- npm install –g @mendix/generator-widget
4- npm install @mendix/pluggable-widgets-tools --legacy-peer-deps
B- in your widget Folder :
B.1 - in package.json Change the @mendix/pluggable-widgets-tools Version in the devDependencies object to :
...............},
//------------------------------------------------
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^9.20.0"
},
//------------------------------------------------
"dependencies": { ....
B.2 open the Terminal (CMD) in your widget folder and run the following command
2- npm i