测试环境重新打包后发现 JSENCRYPT_VERSION is not defined ,导致页面出不来。代码也没改动,所以猜测是版本问题,之前使用的3.0.0 -rc.1已经下载不到,会下载正式的3.0.0版本。导致报错原因是下图182行JSENCRYPT_VERSION未定义。

报错:Uncaught ReferenceError: JSENCRYPT_VERSION is not defined

解决:用旧的版本。或者自己在index,html  定义下全局变量JSENCRYPT_VERSION 。还有在gitHub上问题里找到的,估计会很快会修复这个问题吧!

 import JSEncrypt from 'jsencrypt/bin/jsencrypt.min.js'

报错:Uncaught ReferenceError: JSENCRYPT_VERSION is not defined

报错:Uncaught ReferenceError: JSENCRYPT_VERSION is not defined

 

转自https://blog.csdn.net/qq_37957866/article/details/113737883?utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-OPENSEARCH-1.control

 

相关文章:

  • 2021-04-21
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2021-09-15
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2021-03-26
  • 2021-07-11
  • 2022-02-21
  • 2021-06-26
相关资源
相似解决方案