I’ve been working on a project for quite some time with sage 9.0.9 and it’s been working great. A couple of days ago I removed the node_modules folder by mistake and had to do a “npm install” again. It failed with the following error:
pm ERR! code ERESOLVE
npm ERR! RESOLVE unable to resolve dependency tree
nom ERR!
pm ERR! While resolving: sage@9.0.9
pm ERR! Found: webpack@3.10.0
nom ERR! node modules/webpack
nom ERR!
dev webpack@“~3.10.0” from the root project
nom ERR!
pm ERR! Could not resolve dependency:
nom ERR! peer webpack@“^1.13.2 ||
^2.7.0 || ^3.11.0 || ^4.4.0” from stylelint-webpack-plugin@0.10.5
nom ERR! node modules/stylelint-webpack-plugin
nom ERR!
dev stylelint-webpack-plugin@“^0.10.5” from the root project
nom ERR!
nom ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with
-force, or
–legacy-peer-deps
nom ERR! to accept an incorrect (and potentially broken) dependency resolution.
nom ERR!
nom ERR! See /Users/triphys/.pm/eresolve-report.txt for a full report.
pm ERR! A complete log of this run
can be found in:
nom ERR!
/Users/triphys/.npm/_logs/2022-03-21T21_30_35_507Z-debug-b.log
I tried doing an “npm install --legacy-peer-deps” and tried removing package.lock file, but only received error saying I had to log in to npm.
After trying “yarn” instead it seemed to work, still got the dependency errors but it “went through”. But when I try “yarn run start” I get the following error:
yarn run start
yarn run v1.22.17
$ webpack -hide-modules -watch -config resources/assets/build/webpack.config.js
Webpack is watching the files…
Error: No configuration provided for /Users/triphys/Sites/tam/wp-content/themes/tam/resources/assets/stvles/main.scss
at module.exports (/Users/triphys/Sites/tam/wp-content/themes/tam/node_modules/stylelint/lib/utils/configurationError.js:8:28)
at /Users/triphys/Sites/tam/wp-content/themes/tam/node_modules/stylelint/lib/getConfigForFile.js:46:15
at async Promise.all (index 20)
error Command failed with exit code 1.
info Visit https://varnpka.com/en/docs/cli/run for documentation about this command.
I now get the same error with “npm run start”. I’m clueless of what to do to get my project up and running again. I’m guessing that I’m missing a .stylelint.js file somewhere but I don’t know where to put it or what to put in it?
Thanks in advance