New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find module (after upgrading from 15.9.0 to 15.10.1) #7057
Comments
Random other person who ran into this issue reporting in. After searching for about an hour, I found it was removed in commit The root cause is in the Retiring the isRangeContextMediaFeature functionality would be expected to be mentioned as breaking functionality. So maybe a little learning moment for the stylelint team.
|
Hi all, I submitted the pull request that introduced this issue 👋 Obviously this turned out to be incorrect. Speaking strictly for myself and not representing anyone in this section : I do want to say that this is not a learning moment for me. I know that it can be annoying and frustrating when a tool you depend on suddenly throws errors. Sometimes you just make a change that you think will be good for everyone and you get it wrong. This happens and this is fine. The package using this function is intended as a replacement for deprecated rules. Even more so because this package hasn't seen any activity in the last 2 months. The utility can be removed again in |
I totally understand things can break, even if one thinks they shouldn’t.
By the way, thanks for all the awesome work!
I’m all for changes and deprecations, if they have a clear path forward.
I’m not educated about the project enough to decide if reverting is the
best thing to do, or if documenting a workaround or else is better.
I use Bootstrap’s config, because I use Boostrap and I want to keep my
(S)CSS aligned. As Bootstrap is rather popular project, I guess this might
affect more people.
When looking for the possible root cause of my problem, I’ve bumped into
this
twbs/stylelint-config-twbs-bootstrap#206, which I
didn’t know could be related, but reading the comments here it seems it
might be 🤔
…On Fri 7. 7. 2023 at 23:59, Romain Menke ***@***.***> wrote:
Hi all,
I submitted the pull request that introduced this issue 👋
The function that was removed was an internal utility
<https://github.com/stylelint/stylelint/blob/main/docs/developer-guide/plugins.md#stylelintutils>
that, to the best of my knowledge, wasn't used by other packages. From my
perspective this wasn't a breaking change.
Obviously this turned out to be incorrect.
------------------------------
Speaking strictly for myself and not representing anyone in this section :
I do want to say that this is not a learning moment for me.
I know that it can be annoying and frustrating when a tool you depend on
suddenly throws errors.
Sometimes you just make a change that you think will be good for everyone
and you get it wrong. This happens and this is fine.
------------------------------
The package using this function is intended as a replacement for
deprecated rules.
So I am inclined to restore the utility, even if this utility isn't used
internally any more.
Even more so because this package hasn't seen any activity in the last 2
months.
So I think restoring the utility is the quickest way to help affected
users.
The utility can be removed again in v16.
—
Reply to this email directly, view it on GitHub
<#7057 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACFGMNMEXCUJ6OCBO2QB53XPCBDLANCNFSM6AAAAAA2CGIYXE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
We've recently updated our document about the utilities with PR #7052: stylelint/docs/developer-guide/plugins.md Lines 216 to 220 in cefd267
As possible, we don't want people to use internal utilities. Instead, we want them to use We've been performing many refactorings, such as removing unused utilities and dependencies, to keep this project healthy. Restoring removed and unused them would worsen the project's maintainability. It'd become hard to determine whether we could remove such components. Fortunately, elirasza/stylelint-stylistic#12 seems to be working. I'd like to wait for the new release of |
elirasza/stylelint-stylistic#12 is now resolved and new version released! The following has helped me to get a working stylelint installation:
This upgrades stylelint-stylistic's version from 0.4.2 to 0.4.3 in the package-lock.json. Thanks everyone involved. |
What minimal example or steps are needed to reproduce the bug?
I tried to dig into the root cause, but honestly, I'm completely lost and confused about what could be the culprit. The only thing I know is that v15.9.0 works fine.
What minimal configuration is needed to reproduce the bug?
How did you run Stylelint?
Which Stylelint-related dependencies are you using?
What did you expect to happen?
To lint, as with v15.9.0.
What actually happened?
Stylelint crashes with a cryptic error.
Do you have a proposal to fix the bug?
If the issue is out of scope of Stylelint, at least the error could point me to the right places.
The text was updated successfully, but these errors were encountered: