ReactJS 라이센스 키 적용 관련 오류
페이지 정보
작성자 yhs1997 작성일 2022-11-17 11:22 조회 1,205회 댓글 0건본문
관련링크
안녕하세요. 라이센스 키 적용 관련해서 질문이 있습니다.
현재 사용하는 방식을 해당 코드를 이용해서 라이센스 키를 적용하고 있습니다.
현재 ExcelIO 와 Designer LicenseKey를 찾지 못하는 이슈가 있습니다.
해당 방식으로 적용하는 것이 맞는건지 문의드립니다.
```
import * as ExcelIO from '@grapecity/spread-excelio';
import * as GC from '@grapecity/spread-sheets';
const SpreadDesignerKey = 'DesignerKey';
//@ts-ignore
GC.Spread.Sheets.Designer.LicenseKey = SpreadDesignerKey;
const SpreadJSKey = 'SpreadJsKey';
GC.Spread.Sheets.LicenseKey = SpreadJSKey;
//@ts-ignore
ExcelIO.LicenseKey = SpreadJSKey;
```
(ExcelIO error)
Cannot assign to import "LicenseKey"
ExcelIO.LicenseKey = SpreadJSKey;
╵ ~~~~~~~~~~
Imports are immutable in JavaScript. To modify the value of this import, you must export a setter
function in the imported file (e.g. "setLicenseKey") and then import and call that function here
instead.
(Designer error)
Uncaught TypeError: Cannot set properties of undefined (setting 'LicenseKey')
댓글목록
등록된 댓글이 없습니다.