-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
On every keypress -> TypeError: result.apply is not a function #135
Comments
Thank you for this issue. If you do not use stylelint in javascript (css-in-js), change the https://github.com/stylelint/vscode-stylelint#stylelintvalidate If you use css-in-js, please let me know what the result of running stylelint with CLI. |
Awesome, ya I haven't gotten into css-in-js yet, so I've excluded those which of course prevents the error now. I'm not sure if we should close this issue then? I will try to test it with stylelint CLI at some point though. |
Looking at the error content, it looks like a If you can run Whether to exclude |
You're right @ota-meshi it is a core bug. I tested it and yes the error exists with |
On every key press when editing my webpack config javascript file, stylelint reports errors in the VS Code notifications area (there are no actual reported errors in my code), including the following error in Developer Tools Console:
I'm attaching the full code snippet at the bottom because it's a big snippet. But I've narrowed it down that it occurs from trying to pass a variable
(env)
to my commonConfig arrow function expression.I have no custom stylelint conf.
No. I haven't changed this setting and the error occurs on every key press, not just save.
0.85.0
Not sure, I'm just using the VS Code extension.
I don't think so.
The extension should not chuck errors. :-)
Full error report in Console is:
The full JS file that causes the issue is:
The text was updated successfully, but these errors were encountered: