Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 升级到 2.24.2 后报错 Uncaught Error: Cannot find Provider of Symbol(CLIENT_APP_TOKEN) #2724

Closed
geekeren opened this issue May 17, 2023 · 5 comments
Labels
🐞 bug Something isn't working

Comments

@geekeren
Copy link
Contributor

描述你的问题(Describe the bug)

image

error.js:45 Uncaught Error: Cannot find Provider of Symbol(CLIENT_APP_TOKEN)
    at Object.noProviderError (error.js:45:1)
    at __webpack_modules__../node_modules/@opensumi/di/dist/injector.js.Injector.parseDependencies (injector.js:296:1)
    at __webpack_modules__../node_modules/@opensumi/di/dist/injector.js.Injector.get (injector.js:199:1)
    at ClientApp.createBrowserModules (app.js:237:1)
    at new ClientApp (app.js:145:1)
    at renderApp (render-app.ts:75:15)
    at renderApp (index.tsx:142:30)
    at renderApp (App.tsx:166:26)

复现路径(To Reproduce)

预期表现(Expected behavior)

环境信息(Environment)

  • OS: [e.g. macOS 11.2 Apple M1/Windows10/Windows11]
  • Browser: [e.g. chrome, safari, electron]
  • OpenSumi Version: [e.g. 2.13.0]
@geekeren geekeren added the 🐞 bug Something isn't working label May 17, 2023
@bytemain
Copy link
Member

检查下是不是有两份不同版本的 @opensumi/di

@geekeren
Copy link
Contributor Author

geekeren commented May 17, 2023

@bytemain 没有额,我现在退回到 2.23.4 也会遇到。删除了nodemodule 重装
image

@bytemain
Copy link
Member

可以参考下这个 issue:

排查后就是有多份 @opensumi/di

@bytemain
Copy link
Member

如果你用的 pnpm,检查下 pnpm lock 里是不是有多个不同版本的 opensumi/xxx 包

@geekeren
Copy link
Contributor Author

删除所有 node_module (包括 monorepo 的子目录中的node_module)后解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants