배포 및 라이선싱 [React] 배포 시 라이선스 오류 해결방법
추천0
페이지 정보
작성자 GCK폴 작성일 2022-12-20 11:30 조회 249회 댓글 0건본문
관련링크
리포트 디자이너를 사용하셔서 리포트를 완성하신 후, 웹 상에 개발하신 리포트를 뷰어와 함께 배포할 때, 알 수 없는 라이선스 에러가 발생하신다면 매우 당황스러울 수 있습니다.
일반적으로 아래의 "ActiveRerportsJS 라이선싱 방법" 포스팅을 참고하시면 대부분 라이선스 문제를 해결할 수 있습니다.
그럼에도 리액트(React) 기반의 프로젝트에서 ActiveReportJS 배포 시에 라이선스를 인식하지 못하여 에러가 발생한다면, 아래와 같은 방법을 통해 해결할 수 있습니다.
원인
2개 이상의 서로 다른 버전의 ActiveReportJS "@grapecity/activereports" 인스턴스가 프로젝트에 설치되어 있다.
설명
예를 들어, 아래와 같이 activereports3.0.0과 activereports3.2.0 두가지 버전이 동시에 설정되어 있는 경우, 라이선스 인식에 문제가 생길수 있습니다.
이것은 yarn.lock에서 확인하실수 있습니다.
"@grapecity/activereports-react@^3.0.0": version "3.2.0" resolved "https://registry.yarnpkg.com/@grapecity/activereports-react/-/activereports-react-3.2.0.tgz#31f347858050852c027ae1fb6faf58f7024ade2a" integrity sha512-Y9z6qStD2DbJGeq3QMd6jU3ZPflpVG9JSubpuNHQRk2uchgpoWh5+0M4vsK+9TnkqTbXR+kv0YDuixrJUc4m0g== dependencies: "@grapecity/activereports" "~3.2.0" react "^16 || ^17 || ^18" "@grapecity/activereports@^3.0.0": version "3.2.1" resolved "https://registry.yarnpkg.com/@grapecity/activereports/-/activereports-3.2.1.tgz#94e238e3318ede892b4d0412103468415d4610a4" integrity sha512-3ulwNLpoDCxOe0X4Ffo59nDy1EkPEYcxmCtKhlshNLPQV35Z4VKRxcbnhvQwIq7yiSWctjy3L//luD+3dK5raw== dependencies: "@types/virtual-dom" "^2.1.0" babel-runtime "^6.11.6" blob "^0.1.0" canvg "^4.0.0" color-string "^1.5.3" date-fns "^2.26.0" excel-style-dataformatter "^2.0.1" i18next "^20.3.1" jsonpath-plus "^6.0.0" jszip "^3.2.0" kanjidate "~1.1.3" lodash-es "^4.17.11" moment "^2.22.2" ramda "^0.25.0" tslib "^2.3.0" virtual-dom "^2.1.1" xregexp "^3.0.30" "@grapecity/activereports@~3.2.0": version "3.2.0" resolved "https://registry.yarnpkg.com/@grapecity/activereports/-/activereports-3.2.0.tgz#92ee942070a53c0e08dcce4ea604097405616fd7" integrity sha512-X/VtGxPeIFlG9yw67lR9EFjofVgWIsf2K1Ym7nhE1ltZ1lEXnL4UywT3yzRxLLOcPMdBFDP7CK3i26RC64Dvrg== dependencies: "@types/virtual-dom" "^2.1.0" babel-runtime "^6.11.6" blob "^0.1.0" canvg "^4.0.0" color-string "^1.5.3" date-fns "^2.26.0" excel-style-dataformatter "^2.0.1" i18next "^20.3.1" jsonpath-plus "^6.0.0" jszip "^3.2.0" kanjidate "^1.1.3" lodash-es "^4.17.11" moment "^2.22.2" ramda "^0.25.0" tslib "^2.3.0" virtual-dom "^2.1.1" xregexp "^3.0.30"
해결 방법
- 우선 package.json에서 여러 버전의 "@grapecity/activereports" 를 모두 삭제 합니다.
- 그 이후 실제 사용하고자 하시는 버전의 "@grapecity/activereports-react"를 추가하여 재빌드 하시면 문제가 해결됩니다.
댓글목록
등록된 댓글이 없습니다.