-
-
Notifications
You must be signed in to change notification settings - Fork 928
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
Fix Error ERR_REQUIRE_ESM for string-width
#7201
Comments
@Shkulipa Thanks for the report by using the template. I guess your dependency tree has a newer version of Line 170 in 7e629d4
The newer versions of So, can you take a look at your dependency tree again? |
string-width
@ybiquitous if i correct understood you, I checked three dependencies in stylelint three(in node_modules), and you are right, there a "string-width": "^4.2.3" can you suggest please in this, how i can fix it ?
Thanks |
Um, I'm not sure why a newer version of |
#5782 might help you. |
@ybiquitous thanks you for your help, |
For the ones wondering why we didn't update |
string-width
string-width
Pretend you did not see this! sed -i -e "s#'strip-ansi'#'strip-ansi-cjs'#" node_modules/stylelint/lib/writeOutputFile.js |
Closing as related to package manager resolution rather than stylelint itself. |
What minimal example or steps are needed to reproduce the bug?
setup Nextjs v13.4.19
setup stylelint, try close vscode, and try run stylelint
or some time later try again with run stylelint
What minimal configuration is needed to reproduce the bug?
How did you run Stylelint?
in terminal:
Which Stylelint-related dependencies are you using?
What did you expect to happen?
fix or check scss files
What actually happened?
Get error:
Do you have a proposal to fix the bug?
i delete .stylelintrc
then npx stylelint
it works for a certain time with all the rules that I described, and then again this error
i think maybe need transfer from old ES5 to ES6 to fix it or set in package(inside lib) type: 'CommonJS'
The text was updated successfully, but these errors were encountered: