open-im-sdk-web-wasm icon indicating copy to clipboard operation
open-im-sdk-web-wasm copied to clipboard

fix: can't load `worker.js` in angular

Open cipchk opened this issue 1 year ago • 0 comments

根源

目前 Angular 下无法将 worker.js 将文件复制到所需要的目录下,这导致现在有条件下加载文件时会 404 错误。

可以透过 WORKER_URL 具体定位文件所在路径。

此类似在非 Vite 下可能都会有类似情况。


🔍 What type of PR is this?

👀 What this PR does / why we need it:

  • [ ] My pull request adheres to the code style of this project
  • [ ] My code requires changes to the documentation
  • [ ] I have updated the documentation as required
  • [ ] All the tests have passed

🅰 Which issue(s) this PR fixes:

Fixes #

📝 Special notes for your reviewer:

🎯 Describe how to verify it

📑 Additional documentation e.g., RFC, notion, Google docs, usage docs, etc.:

cipchk avatar Apr 14 '24 12:04 cipchk