core
core copied to clipboard
[Question] ide-startup改造升级opensumiv3.1.0失败
主要是WebIDE场景下,基于 opensumi v3版本的AI的能力做定制化开发并参考 core/packages/starup 代码升级 ide-startup
- 升级
opensumi
包到3.1.0 -
browser/index.ts
参考core/packages/starup/entry/web/app.tsx
-
node/common-modules.ts
参考core/packages/startup/src/browser/common-modules.ts
- 运行
yarn start
webpack4
编译报错
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 场景下 有参考的模板吗?