typescript관련
1410
Tony Lee
작성한 질문수 1
1
코드를 따라서 하다가 저만 오류나는 상황입니다..ㅡ,,ㅡ
function Component(constructorfn?:Function){
return constructorfn
}
@Component()
class AppComponent{
constructor(){
}
}
function Component(constructorfn?: Function | undefined): Function | undefined
Unable to resolve signature of class decorator when called as an expression.
This expression is not callable.
No constituent of type 'Function | undefined' is callable.
This expression is not callable.
No constituent of type 'Function | undefined' is callable.
답변 2
0
저도 같은 문제가 발생했었는데
아래와 같이 해결했습니다!
// tsconfig.json에서 "experimentalDecorators": true, 설정 -> 안됨
// tsconfig.json에서 restrict 주석 처리
// > tsc 4_decoration.ts --experimentalDecorators "true"
오류
0
298
0
item.ts에서 정의할 떄 정의가 안됩니다.
0
293
0
클래스 수업 내용 중 오류 질문
1
725
3
질문이요.
0
341
1
initializeApp 부분에 오류가 납니다.
0
263
1
오류가 납니다
0
216
0
섹션2 FireBase의 petList활용하기에서 에러나네요
0
327
1
{{ one.name }} 이 나오지 않습니다.
0
205
0
Uncaught ReferenceError: SystemJS is not defined
1
560
2
chart.js설치했는데 경로가 없다고 에러가 나요?
0
277
0
4:00
0
233
0
target을 es6로 했는데, 다르게 나옵니다 ㅠ-ㅠ
1
325
1
플러그인 정보
1
505
3
ngOnchanges 질문
3
343
1
tsc -v
1
325
1
자식 컴포넌트간의 데이터 교환
1
298
1
서비스에 서비스를 주입 시
1
266
1
Angular Injector 관련 질문있습니다.
1
417
3
Dependency Injection 관련해서 질문있습니다.
1
303
2
map() 에서 오류 발생
3
395
2
혹시 GitHub 코드는 제공하시나요?
1
381
2
강사님께서 어떤 키를 누르시면 코드가 이쁘게 정렬되는데
2
265
1
영상 중간에 깜나 화면이 나오고있어요.
2
267
1
에러가뜨네요..
1
360
6





