opensumi / ide-startup

Quick starter for OpenSumi Web

Home Page:https://opensumi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

通过 dist-node 启动后,Git 模块无效

icarusion opened this issue · comments

commented

使用 npm start 启动,一切正常,但是 build 后,通过 node dist-node/server/index.js 启动,Git 模块就无效,部分插件也无效(这里安装的 Vue,在 npm start 里都正常)

在本地和 centos 上均存在相同问题

以下是截图:

image

image

image

image

image

commented

@icarusion 这里的原因主要是默认的插件进程文件无法正确拼接为正确的路径,appConfig. extHost 读取到了不正确的路径,同时 module.filename
无法正确读取也导致了该问题

https://github.com/opensumi/core/blob/060ffcb490229c8ff1d0e3b591d67fe952670b58/packages/extension/src/node/extension.service.ts#L321

你重新 pull 一下最新代码,已在 #32 中修复

commented

收到,我试一下,谢谢

commented

@icarusion 可以再试一下,刚刚提交了一点新代码

commented

Git 模块还是不行,然后有一个新的报错,我本地并没有 /hosted/ext.host.js,里面只有一个 /hosted/ext.process.js
image

commented

可以了,谢谢