Skip to content

Instantly share code, notes, and snippets.

@Hansanghyeon
Created January 20, 2021 06:19
Show Gist options
  • Save Hansanghyeon/58834fea551af12dc331192f1933f2ab to your computer and use it in GitHub Desktop.
Save Hansanghyeon/58834fea551af12dc331192f1933f2ab to your computer and use it in GitHub Desktop.
[storybook] [tsconfig] tsconfig-path 플러그인 적용오류

어떤 이유로 리졸 브 플러그인이 확장되지 않은 것처럼 보입니다. 따라서 TsconfigPathsPlugin을 사용하여 TS 경로의 별칭을 가져 오는 경우 스토리 북 웹팩 구성 파일에서 별칭을 다시 정의해야합니다.

config.resolve.plugins = [
  new TsconfigPathsPlugin({
    configFile: path.resolve(__dirname, "../tsconfig.json")
  })
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment