inflearn logo
강의

講義

知識共有

実務に直接適用するストーリーブックとUIテスト

Labelコンポーネントとストーリーのmetadataの紹介

tsconfig

184

jaehong2782

投稿した質問数 5

0

스크린샷 2024-10-19 오후 4.17.47.png

meta 객체의 프로퍼티에서 tsconfig.json에 포함되어 있지 않습니다. 라고 에러가 뜨는데 어떤 설정을 해주어야할까요?

tsconfig.json

{
  "files": [],
  "references": [
    { "path": "./tsconfig.app.json" },
    { "path": "./tsconfig.node.json" }
  ]
}

tsconfig.app.json

{
  "compilerOptions": {
    "target": "ES2020",
    "useDefineForClassFields": true,
    "lib": ["ES2020", "DOM", "DOM.Iterable"],
    "module": "ESNext",
    "skipLibCheck": true,

    /* Bundler mode */
    "moduleResolution": "bundler",
    "allowImportingTsExtensions": true,
    "isolatedModules": true,
    "moduleDetection": "force",
    "noEmit": true,
    "jsx": "react-jsx",

    /* Linting */
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noFallthroughCasesInSwitch": true,
  },

  "include": ["src"]
}

 

tsconfig.node.json

{
  "compilerOptions": {
    "target": "ES2022",
    "lib": ["ES2023"],
    "module": "ESNext",
    "skipLibCheck": true,

    /* Bundler mode */
    "moduleResolution": "bundler",
    "allowImportingTsExtensions": true,
    "isolatedModules": true,
    "moduleDetection": "force",
    "noEmit": true,

    /* Linting */
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noFallthroughCasesInSwitch": true,
  },
  "include": ["vite.config.ts"]
}


 

 

react typescript tailwind-css storybook ui-testing

回答 1

0

jasonkang

tsconfig.json에서 include에 아래 항목들을 추가해보시겠어요?

"include": [
    "src/**/*.stories.ts",
    "src/**/*.stories.tsx"
  ]

스토리북에 대해서

0

68

1

Storybook 10에서 argTypes에 action 설정 시

0

93

1

storybook setup

0

99

2

실무 적용 관련해서 질문이 있습니다!

0

78

2

storybook 프로젝트 세팅 중 궁금한 점이 있습니다.

0

149

2

스토리북 테스트에 대한 질문

0

107

2

tailwind 4.x 버전 변경된 CSS 추출(?) 커맨드

1

215

2

스토리북 테마에 대해 질문 드립니다.

0

164

2

테일윈드를 안쓰고 스타일 컴포넌트만 사용하는 환경에서는요?

0

150

2

[질문 x 공유용] tailwind v4.0 으로 강의랑 다를 때 (import 다름, tailwind.config.js 없어짐 등)

6

494

2

react-toastify 를 storybook에 출력 시키기

0

189

1

react에서 modal & portal 사용시 에는 어떻게 작성해야될까요

0

388

3

vite 초기설정

0

356

2

스토리 내 args에서 에러가 발생합니다.

0

217

2

Nextjs에서 tailwind를 사용할 때

0

287

2

제공해주시는 Figma 색상 코드가 강의와 달라 글 남깁니다!

0

148

2

Visual Test

1

131

1

NavigationBar 배경색

0

133

1

defaultValue 질문 드립니다!

0

130

1

svg를 public 말고 src>assets안에 넣는다면 import를 어떻게해야하나요?

1

275

2

index.tsx 빌드 오류

0

379

2

tailwind css 코드 스플릿팅이 가능한가요?

0

289

1

StoryBook 관련 궁금 사항입니다.

1

267

1

type-error 해결 방법 질문

2

420

4