找回密码
 立即注册

QQ登录

只需一步,快速开始

Loui

金牌服务用户

4

主题

8

帖子

38

积分

金牌服务用户

积分
38

微信认证勋章

Loui
金牌服务用户   /  发表于:2022-10-26 10:38  /   查看:1365  /  回复:2
X [ERROR] Cannot assign to import "LicenseKey"

    script:/IdeaProjects/dlgd-new-front/src/components/commoms/SpreadCore/index.vue?id=1:8:47:
      8 │ GC.Spread.Sheets.LicenseKey = (ExcelIO as any).LicenseKey = import.meta.env.VITE_SPREAD_LICENSEKEY as any;
        ╵                                                ~~~~~~~~~~

  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.



有时候需要注释,然后重启,再解开注释才行。

又有时候注释重启也没用。

2 个回复

倒序浏览
Ellia.DuanSpreadJS 开发认证
超级版主   /  发表于:2022-10-26 11:57:41
沙发
您好,请上传下您这边设置LicenseKey的代码。这边根据您的代码来调研是什么问题。
回复 使用道具 举报
Ellia.DuanSpreadJS 开发认证
超级版主   /  发表于:2022-11-1 12:01:27
板凳
请问您的问题解决了吗?
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部