-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Open
Labels
p3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
When using paintWorklet
a browser console error is thrown in production after running vite build
. The error is:
Uncaught (in promise) DOMException: The user aborted a request.
This error does not occur when using the dev server via vite dev
.
This can be reproduced at https://stackblitz.com/edit/vitejs-vite-x6rmew?file=index.html
- Run
npm run dev
- check console for errors and that the paintWorklet is working, if working the button will have a black background and console will be free of errors.
- Run
npm run build && npm run start
- Check console where you should see the error and the button won't have its black fill.
Reproduction
https://stackblitz.com/edit/vitejs-vite-x6rmew?file=index.html
System Info
System:
OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
CPU: (2) x64 Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
Memory: 1.78 GB / 3.84 GB
Container: Yes
Shell: 5.1.4 - /bin/bash
Binaries:
Node: 14.15.5 - /usr/local/nvm/versions/node/v14.15.5/bin/node
Yarn: 1.22.17 - /usr/bin/yarn
npm: 6.14.11 - /usr/local/nvm/versions/node/v14.15.5/bin/npm
npmPackages:
@vitejs/plugin-legacy: 1.7.1 => 1.7.1
vite: 2.8.4 => 2.8.4
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
penx, controversial, juliendargelos, sxxov, hudson-newey and 3 morekermanx
Metadata
Metadata
Assignees
Labels
p3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)