Stylelint 'Unknown rule declaration-property-value-blacklist' error on every css file - stylelint

While running Stylelint against CSS files, every file has an output with the following error. It is odd that the error appears on the first line/character of each file.
1:1 x Unknown rule declaration-property-value-blacklist

Stylelint shows the "Unknown rule ..." problem when it encounters a rule in the configuration object that it doesn't recognise.
The declaration-property-value-blacklist rule was removed in version 14.0.0 of Stylelint. It was replaced by the declaration-property-value-disallowed-list rule. You should update your configuration object to use that rule instead.

There is a compatibility error between Stylelint 14.x and the stylelint-config-airbnb plugin. https://issuemode.com/issues/airbnb/css/10818973

Related

VSCode 1.62 - Definition for rule 'testing-library/no-debug' was not found

Got this error message Definition for rule 'testing-library/no-debug' was not found. right after VSCode update. Tried to install #types/testing-library, it didn't help.
Find testing-library/no-debug in your Eslint config then change it to testing-library/no-debugging-utils.
Ref:
https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/migration-guides/v5.md#steps-to-upgrade

Groovy:General error during semantic analysis: java.lang.NoSuchMethodError:

Imported the gradle project from the "complete" folder and received the following error:
Groovy:General error during semantic analysis:
java.lang.NoSuchMethodError: 'org.codehaus.groovy.ast.expr.Expression org.codehaus.groovy.ast.tools.GeneralUtils.propX(org.codehaus.groovy.ast.expr.Expression, java.lang.String)'
I am using the latest version of Eclipse, 2020-12, with groovy tools installed.
From grails guide
https://guides.grails.org/gorm-without-grails/guide/index.html
Downloaded code sample from github
https://github.com/grails-guides/gorm-without-grails.git
It seems likely to be a version mismatch, but I cannot determine how to correct this problem.
I have tried to delete the offending file, src/main/groovy/demo/domain/Manufacturer.groovy, and the error appears on the file in this package on line 1.
The error does not appear in any other package. I have done the usual internet searches for resolutions that apply, but have thus far been unable to find a suitable solution. I am hopeful for a suggestion?
I think this error comes from an AST transform that references the older signature of GeneralUtils#propX. This method used to return Expression and was changed to return PropertyExpression.
The bridge method for binary compatibility was missing in groovy-eclipse. https://github.com/groovy/groovy-eclipse/commit/f6f448675d95f858b4ec65b6fc8e55f27ccaaa94

I have an error when executing ionic serve

When I execute ionic serve, it shows the following errors:
Refused to load the image 'http://localhost:8100/favicon.ico' because
it violates the following Content Security Policy directive:
"default-src 'none'". Note that 'img-src' was not explicitly set, so
'default-src' is used as a fallback.
Failed to load resource: the server responded with a
status of 404 (Not Found)
How can I solve this?
I had the same error message.
Looking through the logs printed when doing
ionic serve
showed me a bunch of errors, all similar to this
[ng] ERROR in ./src/global.scss (./node_modules/#angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/global.scss)
[ng] Module build failed (from ./node_modules/sass-loader/lib/loader.js):
[ng] Error: Cannot find module 'node-sass'
[ng] Require stack:
This lead me to get the application up and running again by
npm install node-sass --save
The compilation process is sometimes spitting out rather confusing error messages from time to time, but with a little digging one can start guessing where to start poking
I had the same issue. I was able to solve it. I fixed the routing file, I had a route that couldn't load because another route was higher order.
Ionic include default favicon icon into index.html file.
<link rel="icon" type="image/png" href="assets/icon/favicon.png" />
You can put your favicon icon into "assets/icon" and replace href above.
I had this error and it was because I had included an import I wasn't actually using. In my example, I had accidently imported Console when using console.log.
I was getting error TS2307: Cannot find module 'console'. in the VS Code terminal, but my error in Chrome was "Refused to load the image 'http://localhost:8100/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
Failed to load resource: the server responded with a status of 404 (Not Found)"
So be aware that this error is not necessarily to do with the favicon.
I had same issue but solved using below solution.
<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico" />
I used .ico file instead of .png file and thats works for me. try once.
I get same error multiple times,this error throw when u missed any small issue like wrong image path or forget to write import statement of any module/service/component.these error will shown in terminal when u running your project.After fixing these run your project
I had the exact same problem.
I advise you to take a look at your Terminal in VSCode (or the standard terminal if you launched it by there) and look for an ERROR message.
Most likely the problem isn't the favicon.ico blabla stuff but another element of your app, something in a .ts doc for example. Via Terminal you can seek for it in a better way than Chrome, that shows you this unrelated message.
I too faced same error .In my case i have done mistake in importing file
import { IUser } from 'src/app/shared/interfaces/IUser
Changed path like below is fixed error.
import { IUser } from './shared/interfaces/IUser
Cross check your import file. it might helps
I got the same error when I downloaded a new branch of the project, I just run npm install of the lastest components
I solved by created copy favicon.png from assets/icon/favicon.png to root project folder and rename it to favicon.ico , and also put it on assets/icon/favicon.ico
and also check this answer .
https://stackoverflow.com/a/63749758/8370334
Same issue here with ionic v5 and angular v10.
You may have this error when you create some error in the variables.scss file.
I was using adding a list of global variable that will be used across the app but I forgot to add a ,.
It didn't create an error while compiling...
The code was :
$color-settings: (
'primary': (
'base': #297bfd,
) // <-- Comma is missing here
'secondary': (
'base': #297bfd,
)
}
It will display the same error, I think, it breaks somehow the way ionic compile the scss.
I had the same issue after an upgrade. I solved the problem doing:
npm rebuild node-sass
Try to change the browser, I fixed this clicking on the url resource which opened firefox and then I've been able to test the app normally on Firefox

error adding java package in toaster

I am using yocto krogoth, I have added meta-java in using toaster then its giving below error.
ParseError at /home/siva/yocto/toaster/poky/_toaster_clones/_git___git.yoctoproject.org_meta-java_krogoth/recipes-core/jikes/jikes_1.22.bb:12: Could not inherit file classes/relative_symlinks.bbclass
Down load the file from the link relative_synlinks.bbclass and copy in your meta-java/classes dir
Your layer branches must match: if you use krogoth-branch from poky, you should use krogoth-branch from meta-java as well. You error implies that your meta-java is actually newer.

Netbeans scala plugin problems with ant

I have installed NetBeans 7.3.1 on Mac OSX 10.8.4 with scala.
Could not load definitions from resource scala/tools/ant/antlib.xml. It could not be found.
init:
deps-jar:
/Users/.../NetBeansProjects/ScalaApplication2/nbproject/build-impl.xml:405: The following error occurred while executing this line:
/Users/..../NetBeansProjects/ScalaApplication2/nbproject/build-impl.xml:238: Problem: failed to create task or type scalac
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
BUILD FAILED (total time: 0 seconds)
I have added J-Dscala.home=%SCALA_HOME% to the netbeans.conf file
and on the mac terminal
echo $SCALA_HOME
gives
/usr/local/Cellar/scala/2.10.1/libexec
where
lib directory lives.
The netbeans error message could be worded more clearly.
One issue is that you are using MS Window's syntax %SCALA_HOME% for evaluating your environment variable. The Unix syntax is $SCALA_HOME or ${SCALA_HOME}.
The following works for me:
First add the following line to .profile
export SCALA_HOME=/usr/local/Cellar/scala/2.10.1/libexec
and append the following to netbeans_default_options in netbeans.conf
-J-Dscala.home=/usr/local/Cellar/scala/2.10.1/libexec
I'd prefer to just list the scala home directory in one place to make upgrades more foolproof, but referencing ${SCALA_HOME} from netbeans.conf didn't work for me. Maybe the environment variable needs to be defined elsewhere to be visible from netbeans.conf