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
TypeError: this.getPosition is not a function in LessParser.inlineComment #5666
Comments
@PlayApple Can you reproduce the error on the demo? Also, please use the issue template for a bug report. |
@PlayApple you probably forgot to install |
Sorry , i upload the demo project. `yarn lint Why you should do it regularly:
TypeError: this.getPosition is not a function npm ERR! A complete log of this run can be found in: |
Run |
yarn install |
Please run command above |
Can you do the same with It seems like Running |
@PlayApple Your project's $ node -pe 'require("postcss/package.json").version'
7.0.39
|
@PlayApple run this: |
@lachieh @alexander-akait I'm using PNPM and encountered the same problem.
|
I have the same issue with
and
is there something I'm doing wrong ? |
@NansD Can you provide your EDIT: Please see also #5632 (comment) |
Thank you for your help ! my .stylelintrc.json was like this :
And I just tried transforming it to a js file like so :
but still get |
if you use less , these deps you have to install : |
It works, thank you! |
TypeError: this.getPosition is not a function
"lint:style": "stylelint --fix "src/**/*.less" --custom-syntax postcss-less"
TypeError: this.getPosition is not a function
at LessParser.inlineComment (/web/node_modules/postcss-less/lib/LessParser.js:71:28)
at LessParser.isInlineComment (/web/node_modules/postcss-less/lib/nodes/inline-comment.js:37:12)
at LessParser.other (/web/node_modules/postcss-less/lib/LessParser.js:156:36)
at LessParser.parse (/web/node_modules/postcss/lib/parser.js:75:16)
at parse (/web/node_modules/postcss-less/lib/index.js:11:12)
at new LazyResult (/web/node_modules/stylelint/node_modules/postcss/lib/lazy-result.js:133:16)
at getPostcssResult (/web/node_modules/stylelint/lib/getPostcssResult.js:77:30)
at async lintSource (/web/node_modules/stylelint/lib/lintSource.js:76:4)
at async /web/node_modules/stylelint/lib/standalone.js:218:27
at async Promise.all (index 0)
How can i fixed it. Thanks.
The text was updated successfully, but these errors were encountered: