Closed linonetwo closed 5 months ago
最新版已经修复了,
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
Compiling...
████████████████████████████████████████ 100% | workflow
Error executing boot module $:/plugins/linonetwo/workflow/bpmn-widget.js: ReferenceError: window is not defined
ReferenceError: window is not defined
at node_modules/.pnpm/hammerjs@2.0.8/node_modules/hammerjs/hammer.js ($:/plugins/linonetwo/workflow/bpmn-widget.js:2282:8)
at __require ($:/plugins/linonetwo/workflow/bpmn-widget.js:13:50)
at $:/plugins/linonetwo/workflow/bpmn-widget.js:17073:31
at $:/plugins/linonetwo/workflow/bpmn-widget.js:38957:4
at $tw.utils.evalGlobal ($:/boot/boot.js:616:12)
at $tw.utils.evalSandboxed ($:/boot/boot.js:623:19)
at $tw.modules.execute ($:/boot/boot.js:904:15)
at $:/boot/boot.js:944:30
at $tw.utils.each ($:/boot/boot.js:155:12)
at $tw.modules.forEachModuleOfType ($:/boot/boot.js:943:12)
fatal error: all goroutines are asleep - deadlock!
但你没有发布 @Gk0Wk https://github.com/tiddly-gittly/plugin-dev-cli
最新版已经修复了,
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList Compiling... ████████████████████████████████████████ 100% | workflow Error executing boot module $:/plugins/linonetwo/workflow/bpmn-widget.js: ReferenceError: window is not defined ReferenceError: window is not defined at node_modules/.pnpm/hammerjs@2.0.8/node_modules/hammerjs/hammer.js ($:/plugins/linonetwo/workflow/bpmn-widget.js:2282:8) at __require ($:/plugins/linonetwo/workflow/bpmn-widget.js:13:50) at $:/plugins/linonetwo/workflow/bpmn-widget.js:17073:31 at $:/plugins/linonetwo/workflow/bpmn-widget.js:38957:4 at $tw.utils.evalGlobal ($:/boot/boot.js:616:12) at $tw.utils.evalSandboxed ($:/boot/boot.js:623:19) at $tw.modules.execute ($:/boot/boot.js:904:15) at $:/boot/boot.js:944:30 at $tw.utils.each ($:/boot/boot.js:155:12) at $tw.modules.forEachModuleOfType ($:/boot/boot.js:943:12) fatal error: all goroutines are asleep - deadlock!
但你没有发布 @Gk0Wk https://github.com/tiddly-gittly/plugin-dev-cli
这种window问题怎么解决的呢? import 只能放在顶部, 动态导入吗?
暂时改用require 了
暂时改用require 了
这种window问题怎么解决的呢?
参考 https://github.com/tiddly-gittly/tiddlywiki-whiteboard/blob/eba32075377bb54920e1f01a25ae925e26a131e3/src/tw-whiteboard/widget-loader.js 额外包一层,在这一层里检查。然后原来的Widget改成 library。
How to config loader