Skip to content

Conversation

@acherkashin
Copy link
Contributor

@acherkashin acherkashin commented Apr 23, 2022

The issue

Compilation error happens when parsing the *.less that uses oneline comment (// comment) in less file, as default css parser is used for less files

Error message

/node_modules/storybook-design-token/node_modules/postcss/lib/input.js:148
      result = new CssSyntaxError(
               ^

CssSyntaxError: 
/wwwroot/styles/Less/themes/theme.portal.less:184:66: Unknown word
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser
    at Input.error (/node_modules/storybook-design-token/node_modules/postcss/lib/input.js:148:16)
    at Parser.unknownWord (/node_modules/storybook-design-token/node_modules/postcss/lib/parser.js:540:22)
    at Parser.other (/node_modules/storybook-design-token/node_modules/postcss/lib/parser.js:164:12)
    at Parser.parse (/node_modules/storybook-design-token/node_modules/postcss/lib/parser.js:72:16)
    at parse (/node_modules/storybook-design-token/node_modules/postcss/lib/parse.js:11:12)
    at new LazyResult (/node_modules/storybook-design-token/node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (/node_modules/storybook-design-token/node_modules/postcss/lib/processor.js:28:14)
    at /node_modules/storybook-design-token/dist/parsers/postcss.parser.js:214:69
    at Array.map (<anonymous>)
    at /node_modules/storybook-design-token/dist/parsers/postcss.parser.js:212:60
    at step (/node_modules/storybook-design-token/dist/parsers/postcss.parser.js:44:23)
    at Object.next (/node_modules/storybook-design-token/dist/parsers/postcss.parser.js:25:53)
    at /node_modules/storybook-design-token/dist/parsers/postcss.parser.js:19:71
    at new Promise (<anonymous>)
    at __awaiter (/node_modules/storybook-design-token/dist/parsers/postcss.parser.js:15:12)
    at getNodes (/node_modules/storybook-design-token/dist/parsers/postcss.parser.js:180:12) {

@Sqrrl Sqrrl merged commit 7a145ca into UX-and-I:master May 12, 2022
@Sqrrl
Copy link
Collaborator

Sqrrl commented May 12, 2022

Thank you very much. Published with v2.2.0.

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 this pull request may close these issues.

2 participants