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

fix: can't load worker.js in angular #81

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

cipchk
Copy link
Contributor

@cipchk cipchk commented Apr 14, 2024

根源

目前 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.:

# 根源

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

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

此类似在非 Vite 下可能都会有类似情况。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant