{"record":{"id":"ec99de8df46d4e5b","repo":"swc-project/swc","slug":"expected-ident-with-not-value-token","errorCode":null,"errorMessage":"Expected ident (with 'not' value) token","messagePattern":"Expected ident \\(with 'not' value\\) token","errorType":"validation","errorClass":"swc_css_parser::Error","httpStatus":null,"severity":"error","filePath":"crates/swc_css_parser/src/parser/at_rules/mod.rs","lineNumber":1039,"sourceCode":"            conditions,\n        })\n    }\n}\n\nimpl<I> Parse<SupportsNot> for Parser<I>\nwhere\n    I: ParserInput,\n{\n    fn parse(&mut self) -> PResult<SupportsNot> {\n        let span = self.input.cur_span();\n        let keyword = match cur!(self) {\n            Token::Ident { value, .. } if value.as_ref().eq_ignore_ascii_case(\"not\") => {\n                let ident: Ident = self.parse()?;\n\n                Some(ident)\n            }\n            _ => {\n                return Err(Error::new(\n                    span,\n                    ErrorKind::Expected(\"ident (with 'not' value) token\"),\n                ));\n            }\n        };\n\n        self.input.skip_ws();\n\n        let supports_in_parens = self.parse()?;\n\n        Ok(SupportsNot {\n            span: span!(self, span.lo),\n            keyword,\n            condition: supports_in_parens,\n        })\n    }\n}\n","sourceCodeStart":1021,"sourceCodeEnd":1057,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/swc_css_parser/src/parser/at_rules/mod.rs#L1021-L1057","documentation":"Fired while parsing a @supports condition's `not` operand: the parser expected the current token to be the ident `not` (case-insensitive) so it could build a SupportsNot node, but some other token appeared. Input at fault is a @supports prelude where `not` is missing or misspelled, e.g. `@supports display: grid { }` where a negation was required.","triggerScenarios":"Thrown at crates/swc_css_parser/src/parser/at_rules/mod.rs:1039 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Write `not (...)` with the `not` ident","Report the collected error","Fix the @supports condition syntax"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5176682b65416c6b5de6b47379ae1588ea3ecb3f","analyzedAt":"2026-08-17T16:16:52.067Z","contentChangedAt":"2026-08-17T16:16:52.067Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}