Skip to content
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

Stylelint 16 Support #58

Open
dons20 opened this issue Dec 17, 2023 · 2 comments · May be fixed by #59
Open

Stylelint 16 Support #58

dons20 opened this issue Dec 17, 2023 · 2 comments · May be fixed by #59

Comments

@dons20
Copy link

dons20 commented Dec 17, 2023

Would like to use this plugin in version 16, and it probably requires an update to ESM. https://stylelint.io/migration-guide/to-16#deprecated-commonjs-api

Current error:

Error: Cannot find module '{redacted}/frontend/node_modules/stylelint/lib/utils/isStandardSyntaxAtRule.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1098:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1091:15)
    at resolveExports (node:internal/modules/cjs/loader:567:14)
    at Module._findPath (node:internal/modules/cjs/loader:636:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> ({redacted}/frontend/node_modules/stylelint-csstree-validator/cjs/index.cjs:4:32)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
@carlosjeurissen carlosjeurissen linked a pull request Jan 24, 2024 that will close this issue
@carlosjeurissen
Copy link

#59 adds stylelint v16 support.

@carlosjeurissen
Copy link

carlosjeurissen commented Feb 19, 2024

@dons20 @louh @AllanChain @xiaoxiangmoe @rgant @ChrisBews
pushed the v16 supported version to npm for the time being until we can get this merged.
https://www.npmjs.com/package/@carlosjeurissen/stylelint-csstree-validator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants