baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。
https://baidu.github.io/amis/
Apache License 2.0
16.49k stars 2.41k forks source link

Error: Invalid `workerSrc` type. at set workerSrc #10431

Closed hury88 closed 9 hours ago

hury88 commented 3 weeks ago

实现场景:

请简单描述你想要实现的原始场景,例如:我想要实现xxx的功能... 我在用iframe访问amis-editor

存在的问题:

请简单描述你现在遇到的不符合预期的问题... 访问后提示 __webpack_exports__GlobalWorkerOptions.workerSrc = pdfJSWorkerURL; 提示这个pdfJSWorkerURL worksrc不是字符串 经过断点发现pdfJSWorkerURL是一个workerhanlder对象 版本 "amis": "^6.5.0", "amis-core": "^6.5.0", "amis-formula": "^6.5.0", "amis-ui": "^6.5.0", "amis-editor": "^6.5.0", "amis-editor-core": "^6.5.0", "amis-widget": "3.2.0",

"react": "^18.2.0",
"react-dom": "^18.2.0",

当前方案:

请粘贴你当前方案的完整 amis schema 代码... image image

code here...
codering commented 4 days ago

@2betop 6.6.0这个问题还在。 我没用到pdf相关的功能,在开发模式下没有报错,但打包压缩后就有这个问题。