본문 바로가기
개발개발/Date-project

[스토리북] 에러 TypeError: importers[path] is not a function occurred in monorepo after migrating to v7

by yelimu 2025. 3. 13.

TypeError: importers[path] is not a function occurred in monorepo after migrating to v7

https://github.com/storybookjs/storybook/issues/22086

 

[Bug]: TypeError: importers[path] is not a function occurred in monorepo after migrating to v7 · Issue #22086 · storybookjs/st

Describe the bug When using Storybook version 6.5.15 in monorepo with vite, there were no issues. But after migrating to version 7, an error occurred. TypeError: importers[path] is not a function a...

github.com

여러가지 방법이 댓글로 달려있는데 나의 경우 스토리북 종료 후 재시작하니 해결됐다는 이 댓글을 보고 해결했다!!

 

스토리 이름이 변경됐을때 이전 경로가 캐시가 남아있어서 발생하는 것 같다.