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
Fix TypeError Result.apply is not a function #4793
Comments
I have a same problem, but without CSS-in-JS code: let html;
html.replace(); I assume the word |
@NickdeK Thanks for the report and for using the template. I can reproduce this locally.
Yes, it appears so. I've created a pull request patch the issue (#4797), which will need to be reviewed, merged and released. In the meantime, you can work around the issue by using the stylelint "**/*.js" --syntax "css-in-js" |
We are running stylelint in a Gatsby project and get this error:
I traced the error back to this upgrade (output from
|
Downgrading to |
even after downgrading to v13.3.0 I still get the same error. |
I've written up some more details on this bug over at #4797 (comment). This should be fixed with the next release of stylelint. In the meantime you can use @laclance Can you try the above steps? If that doesn't work, please create a new issue and fill out all the steps in the issue template. Thank you! |
@m-allanson Tried the fix with the master branch like you said and it works perfectly! If we can get a release version that would be great :) |
thanks, seems to be working. |
TypeError fixed in stylelint/stylelint#4793
This is not actually fixed, and can be hit with other unfortunately named imports - for instance 'markdown'. Is a regression from #4729 which introduced The tricky bit is I really can't tell what the |
Any news on this? We are still locked down to |
Looks like this is still an issue in 13.8.0. The workaround with manually specifying the syntax used still works though. |
Thanks for this. I was extremely confused why this error was popping up in some projects but not others. I had a file named markdown as well. For others who may have come to this issue from Google looking for a solution for the stylelint vscode extension, you can "whitelist" files vscode lints by adding this to your setttings.json.
|
Seeing this in files with an |
Closing as the The postcss-lit custom syntax is now available for Lit elements. |
After updating Stylint from 13.3.3 tot 13.5.0 we are having issues where we get the following error on js files.
Doesn't seem to be related to any rule.
13.5.0
CLI with
npx stylelint fin-button.js
Yes, it relates to CSS used in JS.
No error to be thrown just like in 13.3.3 (last working version).
The following error was thrown:
The text was updated successfully, but these errors were encountered: