Code Monkey home page Code Monkey logo

behavior3editor's Issues

关于nodejs版本

作者写着的nodejs版本需要16.20
我使用macos下使用arm芯片的macbook中,使用16.20会报错:ERR_OSSL_EVP_UNSUPPORTED
查询后是说16.20版本依赖openssl 3.0,导致webpack出错。
解决方法也很简单,把nodejs降级到16.13,问题解决。

特此说明下

安装出现SyntaxError: missing ) after argument list 报错

npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! code 1
npm ERR! path /Users/bytedance/Documents/github/behavior3editor/node_modules/electron
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! /Users/bytedance/Documents/github/behavior3editor/node_modules/yauzl/index.js:295
npm ERR! buffer = newBuffer(entry.fileNameLength + entry.extraFieldLength + e
npm ERR! ^
npm ERR!
npm ERR! SyntaxError: missing ) after argument list
npm ERR! at internalCompileFunction (node:internal/vm:73:18)
npm ERR! at wrapSafe (node:internal/modules/cjs/loader:1176:20)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1218:27)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1117:32)
npm ERR! at Module._load (node:internal/modules/cjs/loader:958:12)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1141:19)
npm ERR! at require (node:internal/modules/cjs/helpers:110:18)
npm ERR! at Object. (/Users/bytedance/Documents/github/behavior3editor/node_modules/extract-zip/index.js:8:15)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1254:14)
npm ERR!
npm ERR! Node.js v18.16.0

关于node配置的问题

可以增加一个像以前一样选择配置节点的功能吗?多个文件在一起开发存在多个配置节点的问题,把节点合并,又得解决重名问题。希望作者大大,可以增加一个像以前一样选择配置节点的功能。

节点搜索

大大,有考虑过做一个节点搜索的功能吗?树太大以后真的很难定位。

TreeJson文件过滤

我把workspace放在了unity工程里面,tree json会读到.meta文件,读desc的时候导致整个文件列表crash,需要加一个过滤!

Explorer.tsx
const files = fs.readdirSync(folder);

fixed:
const files = fs.readdirSync(folder).filter((f) =>{
return f.endsWith(".json");
});

关于mac版的应用构建

因为js代码我也不太熟悉,以下只是给出了临时解决方案,让他可以构建出macos上的应用。
1.找到项目根目录 package.json文件
第10行代码改为
"dist": "npm run prestart && electron-builder --dir && electron-builder --mac"

2.找到目录main-process下的Settings.ts文件
在文件头部加入两行
import { app } from 'electron';
import path from 'path';

然后找到以下这行代码
const settingPath = "settings.json";
注释这行代码,增加两行,如下所示
// const settingPath = "settings.json";
const userDataPath = app.getPath('userData');
const settingPath = path.join(userDataPath, 'settings.json');

然后运行 npm run dist即可,会在build中找到响应的应用

我是mac arm64的m系列芯片,使用electron-builder --mac没有问题,我不知道如果是intel的机器,这个地方是否需要更改

就不推送代码了,太简陋了,如果作者有时间,可以考虑下mac下的应用构建。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.