inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Angular(2+) Front에서 Back까지 - Nest js를 알려면 Angular 모듈을 알아야한다!

Angular-cli 설치

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

277

신유현

작성한 질문수 1

0

1. chart.js를 설치했을 때 나온 메세지입니다.

npm install chart.js --save

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})    

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})   

+ chart.js@2.9.4

updated 1 package and audited 1465 packages in 8.377s

82 packages are looking for funding

  run `npm fund` for details

found 0 vulnerabilities

제대로 설치된 걸까요?

2.  dist파일에 chart.js가 있던데... 제가 찾아본 예제는 import {Chartfrom 'node_modules/chart.js'; 하라고 해서
했는데 안되고, dist를 붙여도 dist다음에 chart.js를 붙여도 안되네요.

Error: src/app/my-chart/my-chart.component.ts:2:21 - error TS7016: Could not find a declaration file for module 'node_modules/chart.js/dist/Chart.js'. 'C:/MyAngular/front-end/node_modules/chart.js/dist/Chart.js' implicitly has an 'any' type. Try `npm install @types/chart.js` if it exists or add a new declaration (.d.ts) file containing `declare module 'node_modules/chart.js/dist/Chart.js';` 2 import {Chart} from 'node_modules/chart.js/dist/Chart.js';

뭐가 문제일까요?

Angular

답변 0

오류

0

297

0

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

0

293

0

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

1

724

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

4:00

0

233

0

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

1

325

1

플러그인 정보

1

505

3

ngOnchanges 질문

3

343

1

typescript관련

1

1410

2

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