[VSCode] Experimental Decorator Error
While creating an Injectable
in my Angular project, I came across the following error:
Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.ts(1219)
As an attempt to get rid of this lint error, I added
"compilerOptions": {
"experimentalDecorators": true,
"allowJs": true,
}
to the tsconfig.json
file. But the real solution to this error is enabling the ExperimentalDecorator
option in VS Code's setting.
This option was found at Setting -> ExperimentalDecorator
.
Author And Source
이 문제에 관하여([VSCode] Experimental Decorator Error), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@thundelly/VSCode-ExperimentalDecorator-에러저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)