Open changchang1024 opened 5 days ago
我使用您的项目尝试把语雀的脑图文档转换为xmind的时候出现了问题。“xmind无法打开转换后的文件” 我说一下我现在环境配置,方便您定位问题。 node版本:v18.19.1 npm版本:10.2.4 xmind:最新版 浏览器用的是火狐127.0(64位) 您预留的语雀脑图文件是可以正常打开的。 package.json文件内容 { "name": "yuque2xmind", "version": "1.0.0", "author": "zzy", "description": "This is a tool to convert yuque mind to xmind", "main": "convert_lakemind_to_xmind.js", "type": "module", "dependencies": { "axios": "^1.7.2", "cheerio": "^1.0.0-rc.12", "cli-progress": "^3.12.0", "cli-table3": "^0.6.5", "esm": "^3.2.25", "fs-extra": "^11.2.0", "he": "^1.2.0", "inquirer": "^9.2.23", "js-yaml": "^4.1.0", "jszip": "^3.10.1", "lodash": "^4.17.21", "p-limit": "^5.0.0", "uuid": "^10.0.0", "winston": "^3.13.0", "xml2js": "^0.6.2", "xmlbuilder": "^15.1.1" }, "scripts": { "start": "node ./script/convert_lakemind_to_xmind.js", "testToContent": "node ./test/test_to_content.js", "testToXmind": "node ./test/file_to_xmind.js", "LakeToJson": "node ./test/lake_to_json.js" }, "license": "MIT" } 还有一个小问题是 您该项目中util包下的util.js import cheerio from "cheerio"; 在我的环境中需要改成 import * as cheerio from "cheerio"; 才可以运行 以上是我做的所有变动 我在附件中放上我转换前和转换后的文件。希望可以帮助你快速定位问题。 selenium.zip
有空我看下
好的
我使用您的项目尝试把语雀的脑图文档转换为xmind的时候出现了问题。“xmind无法打开转换后的文件” 我说一下我现在环境配置,方便您定位问题。 node版本:v18.19.1 npm版本:10.2.4 xmind:最新版 浏览器用的是火狐127.0(64位) 您预留的语雀脑图文件是可以正常打开的。 package.json文件内容 { "name": "yuque2xmind", "version": "1.0.0", "author": "zzy", "description": "This is a tool to convert yuque mind to xmind", "main": "convert_lakemind_to_xmind.js", "type": "module", "dependencies": { "axios": "^1.7.2", "cheerio": "^1.0.0-rc.12", "cli-progress": "^3.12.0", "cli-table3": "^0.6.5", "esm": "^3.2.25", "fs-extra": "^11.2.0", "he": "^1.2.0", "inquirer": "^9.2.23", "js-yaml": "^4.1.0", "jszip": "^3.10.1", "lodash": "^4.17.21", "p-limit": "^5.0.0", "uuid": "^10.0.0", "winston": "^3.13.0", "xml2js": "^0.6.2", "xmlbuilder": "^15.1.1" }, "scripts": { "start": "node ./script/convert_lakemind_to_xmind.js", "testToContent": "node ./test/test_to_content.js", "testToXmind": "node ./test/file_to_xmind.js", "LakeToJson": "node ./test/lake_to_json.js" }, "license": "MIT" } 还有一个小问题是 您该项目中util包下的util.js import cheerio from "cheerio"; 在我的环境中需要改成 import * as cheerio from "cheerio"; 才可以运行 以上是我做的所有变动 我在附件中放上我转换前和转换后的文件。希望可以帮助你快速定位问题。 selenium.zip