inflearn logo
강의

講義

知識共有

Angular(2+)FrontからBackまで - Nest jsを知るにはAngularモジュールを知る必要があります!

Angularを理解するためのタイプスクリプトの知識2

typescript관련

1431

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.

Angular

回答 2

0

Kyuyoung Jang

저도 같은 문제가 발생했었는데

아래와 같이 해결했습니다!

// tsconfig.json에서 "experimentalDecorators": true, 설정 -> 안됨
// tsconfig.json에서 restrict 주석 처리
// > tsc 4_decoration.ts --experimentalDecorators "true"

0

youngtaekim

타입스크립트 설정이랑 관련있을 것 같은데 정확하게는 원인을 모르겠네요 좀더 자세한 정보를 주실 수 있을까요? 

오류

0

304

0

item.ts에서 정의할 떄 정의가 안됩니다.

0

300

0

클래스 수업 내용 중 오류 질문

1

744

3

질문이요.

0

354

1

initializeApp 부분에 오류가 납니다.

0

267

1

오류가 납니다

0

222

0

섹션2 FireBase의 petList활용하기에서 에러나네요

0

342

1

{{ one.name }} 이 나오지 않습니다.

0

207

0

Uncaught ReferenceError: SystemJS is not defined

1

570

2

chart.js설치했는데 경로가 없다고 에러가 나요?

0

291

0

4:00

0

240

0

target을 es6로 했는데, 다르게 나옵니다 ㅠ-ㅠ

1

347

1

플러그인 정보

1

543

3

ngOnchanges 질문

3

371

1

tsc -v

1

337

1

자식 컴포넌트간의 데이터 교환

1

316

1

서비스에 서비스를 주입 시

1

279

1

Angular Injector 관련 질문있습니다.

1

439

3

Dependency Injection 관련해서 질문있습니다.

1

319

2

map() 에서 오류 발생

3

414

2

혹시 GitHub 코드는 제공하시나요?

1

396

2

강사님께서 어떤 키를 누르시면 코드가 이쁘게 정렬되는데

2

272

1

영상 중간에 깜나 화면이 나오고있어요.

2

273

1

에러가뜨네요..

1

391

6