tiddly-gittly / TidGi-Desktop

TidGi is an privacy-in-mind, automated, auto-git-backup, freely-deployed knowledge management Desktop note app, based on Tiddlywiki, with REST API for web-clipping and Anki connect. 「 太记 」是一个基于「 太微 TiddlyWiki 」的知识管理桌面应用,能保护隐私内容、高级自动化、自动Git云备份、部署为博客,且可通过RESTAPI与Anki等应用连接。(迭代开发中欢迎试用,开发进度见下方链接)(Under active development, see website below for details)
https://tidgi.fun
Mozilla Public License 2.0
1.74k stars 111 forks source link

bug: compatibility with plugin:left open tab:"Global assignment is not allowed within modules on node." #460

Closed heavenkiller2018 closed 9 months ago

heavenkiller2018 commented 1 year ago

Environment 环境信息

after install the plugin:left open tab

Unhandled Promise Rejection
Error: Error executing boot module $:/plugins/felixhayashi/tiddlymap/js/config/vis: {"code":"MODULE_NOT_FOUND","requireStack":["C://Users//11507//AppData//Local//tidgi//app-0.8.1-prerelease6//resources//node_modules//@tiddlygit//tiddlywiki//boot//boot.js","C://Users//11507//AppData//Local//tidgi//app-0.8.1-prerelease6//resources//app.asar.unpacked//.webpack//main//543.index.worker.js"]}
Error: Cannot find module '$:/plugins/felixhayashi/vis/vis.js'
Require stack:
- C:/Users/11507/AppData/Local/tidgi/app-0.8.1-prerelease6/resources/node_modules/@tiddlygit/tiddlywiki/boot/boot.js
- C:/Users/11507/AppData/Local/tidgi/app-0.8.1-prerelease6/resources/app.asar.unpacked/.webpack/main/543.index.worker.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
    at Module._load (node:internal/modules/cjs/loader:927:27)
    at Function.f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1148:19)
    at a (C:/Users/11507/AppData/Local/tidgi/app-0.8.1-prerelease6/resources/app.asar.unpacked/.webpack/main/543.index.worker.js:2:448146)
    at Object.$tw.modules.execute (C:/Users/11507/AppData/Local/tidgi/app-0.8.1-prerelease6/resources/node_modules/@tiddlygit/tiddlywiki/boot/boot.js:893:11)
    at require (C:/Users/11507/AppData/Local/tidgi/app-0.8.1-prerelease6/resources/node_modules/@tiddlygit/tiddlywiki/boot/boot.js:852:24)
    at $:/plugins/felixhayashi/tiddlymap/js/config/vis:3:80
    at $:/plugins/felixhayashi/tiddlymap/js/config/vis:14:4
    at Object.$tw.utils.evalGlobal (C:/Users/11507/AppData/Local/tidgi/app-0.8.1-prerelease6/resources/node_modules/@tiddlygit/tiddlywiki/boot/boot.js:617:12)
    at Object.next (C:/Users/11507/AppData/Local/tidgi/app-0.8.1-prerelease6/resources/app.asar/.webpack/main/index.js:2:1955845)

after install plugin: felixhayashi/vis

Unhandled Promise Rejection
Error: Error executing boot module $:/plugins/felixhayashi/vis/vis.js: "Global assignment is not allowed within modules on node."
undefined
    at Object.next (C:/Users/11507/AppData/Local/tidgi/app-0.8.1-prerelease6/resources/app.asar/.webpack/main/index.js:2:1955845)

Description 描述

No response

Steps to Reproduce 复现方式

install plugin: felixhayashi/vis

Additional Context 额外上下文

No response

linonetwo commented 1 year ago

据说已经修好了 https://github.com/tiddly-gittly/TidGi-Desktop/issues/385

heavenkiller2018 commented 1 year ago

I'm afraid not yet in the newest TidGi version !

Version v0.8.1-prerelease6

Electron Version: 25.2.0
Node Version: 18.15.0
Chromium Version: 114.0.5735.134
linonetwo commented 9 months ago

Still have error Warning: Global assignment detected [ 'core-js_shared' ]

I think this should be a bug in the tiddlymap's build and its developer should be told to go with https://github.com/tiddly-gittly/Modern.TiddlyDev