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] 开发环境下 editor.worker.bundle.js 资源加载 404 问题 #4305

Closed
nxps opened this issue Jan 7, 2025 · 1 comment · Fixed by #4314
Closed

[BUG] 开发环境下 editor.worker.bundle.js 资源加载 404 问题 #4305

nxps opened this issue Jan 7, 2025 · 1 comment · Fixed by #4314
Assignees
Labels
🐞 bug Something isn't working

Comments

@nxps
Copy link
Contributor

nxps commented Jan 7, 2025

描述你的问题(Describe the bug)

https://github.com/opensumi/core/blob/main/packages/monaco/src/browser/monaco.contribution.ts#L310

这里改动会让使用 ide-startup 模板的项目,本地 NODE_ENV=development 启动找不到 http://localhost:8082/assets/monaco/worker/editor.worker.bundle.js.

只能通过 cp 文件临时解决,如下

mkdir -p dist/assets/monaco/worker && cp node_modules/@opensumi/ide-monaco/worker/editor.worker.bundle.js dist/assets/monaco/worker/editor.worker.bundle.js

复现路径(To Reproduce)

预期表现(Expected behavior)

环境信息(Environment)

  • OS: macOS 11.2 Apple M1
  • Browser: chrome
  • OpenSumi Version: 3.7.0
@nxps nxps added the 🐞 bug Something isn't working label Jan 7, 2025
@erha19
Copy link
Member

erha19 commented Jan 7, 2025

@Ricbet 看看,跟这个 PR 相关 #4273

@Ricbet Ricbet linked a pull request Jan 13, 2025 that will close this issue
@Ricbet Ricbet self-assigned this Jan 13, 2025
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

Successfully merging a pull request may close this issue.

3 participants