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

Compound interpolated expressions throw "Invalid prelude for @media csstree/validator" #52

Open
pinkhominid opened this issue Feb 17, 2023 · 1 comment

Comments

@pinkhominid
Copy link

pinkhominid commented Feb 17, 2023

With version 2.1.0, using the postcss-lit custom syntax, compound interpolated expressions like this error

    @media (min-width: 500px) and ${namedMedia.css.mobile} {
        /* ... */
    }

whereas this doesn't

    @media ${namedMedia.css.mobile} {
        /* ... */
    }
@rgant
Copy link

rgant commented Dec 13, 2023

I believe that isStandardSyntaxAtRule is now gone from Stylelint@16:

Error: Cannot find module '/.../node_modules/stylelint/lib/utils/isStandardSyntaxAtRule.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1181:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1169:15)
    at resolveExports (node:internal/modules/cjs/loader:591:14)
    at Module._findPath (node:internal/modules/cjs/loader:668:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (.../node_modules/stylelint-csstree-validator/cjs/index.cjs:4:32)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
$ npm list stylelint-csstree-validator stylelint
├─┬ [email protected] overridden
│ └── [email protected] deduped
└── [email protected]

Mentioning this here because in the previous ticket this method was mentioned as the source of my issue. If this should be a new ticket let me know and I will create one.

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

No branches or pull requests

2 participants