[Bug]: react-heading 패키지 설치 후 Module not found 오류 발생#37
Merged
sooster910 merged 1 commit intomainfrom Aug 16, 2025
Merged
Conversation
🦋 Changeset detectedLatest commit: 58dbcd5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #34
🐛 버그 수정
🐛 버그 설명
react-heading패키지를 npm으로 설치한 후import { Heading } from 'react-heading'구문으로 import할 때 "Module not found: Error: Can't resolve 'react-heading'" 오류가 발생하여 애플리케이션 빌드가 실패하고 개발 서버가 실행되지 않는 문제를 수정했습니다.🔍 원인 분석
react-heading으로 설치하려고 하지만 실제 패키지 이름은@hensley-ui/react-headingdist폴더가 없어서 빌드된 파일들이 없었음🔧 수정 내용
📁 변경된 파일들
packages/ui/react-heading/package.json: ESM 설정 및 exports 최적화packages/ui/react-heading/vite.config.ts: ESM 전용 빌드 설정packages/ui/react-heading/README.md: 올바른 패키지 이름과 import 구문 수정packages/ui/react-heading/dist/: 빌드 파일 재생성 (index.mjs, index.d.ts 등)🧪 테스트
🔗 관련 이슈
Fixes #34
✅ 체크리스트
�� 사용법 (수정 후)
�� Breaking Changes
@hensley-ui/react-heading패키지 이름을 사용해야 함참고: 이 PR은 AI 자동 코드리뷰 시스템에 의해 자동으로 리뷰됩니다! 🤖