opensumi / core

🚀 A framework helps you quickly build AI Native IDE products.
https://opensumi.com
MIT License
2.98k stars 381 forks source link

[Question] ide-startup改造升级opensumiv3.1.0失败 #3782

Closed heroyanglonghui closed 2 months ago

heroyanglonghui commented 4 months ago

主要是WebIDE场景下,基于 opensumi v3版本的AI的能力做定制化开发并参考 core/packages/starup 代码升级 ide-startup


node v14.21.3
yarn run v1.22.18
run-p start:client start:server start:webview

ERROR in ./node_modules/web-tree-sitter/tree-sitter.js 1:4558
Module parse failed: Unexpected token (1:4558)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

ERROR in ./node_modules/js-tiktoken/dist/index.cjs 71:15
Module parse failed: Unexpected token (71:15)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| var _Tiktoken = class {
|   /** @internal */
>   specialTokens;
|   /** @internal */
|   inverseSpecialTokens;
 @ ./node_modules/@opensumi/ide-ai-native/lib/browser/contrib/inline-completions/prompt/tokenizer.js 5:22-44
 @ ./node_modules/@opensumi/ide-ai-native/lib/browser/contrib/inline-completions/prompt/prompt.js
 @ ./node_modules/@opensumi/ide-ai-native/lib/browser/contrib/inline-completions/provider.js
 @ ./node_modules/@opensumi/ide-ai-native/lib/browser/contrib/inline-completions/completeProvider.js
 @ ./node_modules/@opensumi/ide-ai-native/lib/browser/ai-core.contribution.js
 @ ./node_modules/@opensumi/ide-ai-native/lib/browser/index.js
 @ ./src/browser/common-modules.ts
 @ ./src/browser/index.ts

@Ricbet 请问 opensumi v3 在 webide 场景下 有参考的模板吗?

bytemain commented 4 months ago

这个报错是 webpack4 不支持解析这个依赖包,升级到 webpack5 吧

可以参考这个 pr: https://github.com/opensumi/ide-startup/pull/106

stale[bot] commented 2 months ago

此问题已被自动标记为已过时,如果没有进一步的活动,它将被关闭。谢谢您的贡献。 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.