Closed elmarbransch closed 2 years ago
Hi @elmarbransch. I just tried to reinstall everything from scratch locally and the lint and build commands seem to run fine 🤔 I also tried removing the package-lock.json file and see if some dependencies got removed. Can you maybe try to add the @wordpress/stylelint-config
dependency manually (npm i -D @wordpress/stylelint-config
) and see if this solves the issue. Theoretically this package is a dependency of the @wordpress/scripts
package and should be resolved during the install step.
And about the node version: You probably sent the npm
version in your ticket right? Because you should use node 16 to run those commands. Do you get any errors when installing the npm dependencies related to the @wordpress/stylelint-config
package?
Hi @elmarbransch. I just tried to reinstall everything from scratch locally and the lint and build commands seem to run fine 🤔 I also tried removing the package-lock.json file and see if some dependencies got removed.
Hi @tschortsch , thanks for the ultrafast reply! basically I did : git clone ... npm install ... composer install ... and then I got those errors already on npm run lint
Can you maybe try to add the
@wordpress/stylelint-config
dependency manually (npm i -D @wordpress/stylelint-config
) and see if this solves the issue.
I did, but then get this lintng issues about @ and # chars anyway with the standard .stilelintrc.json
Theoretically this package is a dependency of the
@wordpress/scripts
package and should be resolved during the install step. And about the node version: You probably sent thenpm
version in your ticket right? Because you should use node 16 to run those commands.
uhh, my bad, sorry :) yes, node 16, npm 8
Do you get any errors when installing the npm dependencies related to the
@wordpress/stylelint-config
package?
I get some audit suggestions as usual, but no errors.
Let me try to restart from scratch and install only this single package @wordpress/stylelint-config locally.
I tried a fresh start and I saw a lot of warning and deprecations. Not sure, it these are harmful? (see below)
If i then try to lint I still get
Hey @tschortsch, sorry for the buzz, I cloned the repo in a new folder again and run composer/npm install and now it runs fine. No idea what changed on my end, but I am lucky it worked :) I guess I loaded some addtional npm packages while trying around and now it works with a clean setup.
Good to hear! If you have other questions about the plugin just ask.
many thanks! And thanks for your support!
Hi, thanks for this fantastic work.
We wanted to add some blocks and reduce the edit options. I follewed the docs here, but no matter what I trry, I am unable to lint or build the project.
I chased this in various discussion and found out these issues
in ".stylelintrc.json"
with ""extends": "@wordpress/stylelint-config",
i get an error in the linting module Error: Could not find "@wordpress/stylelint-config". Do you need a
configBasedir
?if change it to "extends": "stylelint-config-recommended", this error goes away, but linting the scss will raise a linting error about the # and @ in the flles.
(it suggests to install postscss that I have installed)
In the same way building fails, because it is unable to process the scss files.
My node version is 8.1.2
it seems I am out of luck . any idea or did I hit a bug? thanks