https://github.com/xiaohk/vite-worker-error-demo
https://github.com/xiaohk/vite-worker-error-demo
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xiaohk/vite-worker-error-demo
- Owner: xiaohk
- Created: 2023-07-06T00:17:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-07T22:21:17.000Z (over 2 years ago)
- Last Synced: 2024-12-28T06:27:01.342Z (over 1 year ago)
- Language: TypeScript
- Size: 222 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Vite Error
To reproduce the error:
1. In `blue`: `npm install && npm build`
2. In `red`: `npm install && npm run dev`
3. Open localhost, the web console would show `SyntaxError: return not in function`
4. However, there is no error if one runs `npm run dev` in `blue`