The typescripe project compiled by vite cannot run normally on safari, but it can run normally on chrome
See original GitHub issueDescribe the bug
https://github.com/tauri-apps/create-tauri-app/issues/87
Then I start the project through the command about npm run tauri dev, but it gives an error when rendering。
Below is info of npm run tauri info:
Below is struct of the project:

Reproduction
npm create vite@latest
System Info
Below is info of `npm run tauri info`:
<img width="380" alt="image" src="https://user-images.githubusercontent.com/16849315/180134132-f8c1d14c-bc8d-4436-8fe6-110462c993b0.png">
<img width="247" alt="image" src="https://user-images.githubusercontent.com/16849315/180134285-250df6f7-66bf-4427-8aa3-6ca777415fe9.png">
it is ok in chrome:
<img width="1211" alt="image" src="https://user-images.githubusercontent.com/16849315/181007749-16f1993f-5ce3-4df2-bab6-18732538da02.png">
it is not ok in safari,the safari‘s version is 13.0.3 (13608.3.10.10.1)
<img width="1224" alt="image" src="https://user-images.githubusercontent.com/16849315/181008275-f96fd4ef-4191-4874-868f-84def821a4f7.png">
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 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.
Issue Analytics
- State:
- Created a year ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Building for Production - Vite
When it is time to deploy your app for production, simply run the vite build command. ... it works as expected, just like...
Read more >Chrome can't load web worker - Stack Overflow
I am working on a project that uses a web worker. This works fine in Safari, but Chrome reports the following error: Uncaught...
Read more >Build and Deploy a Single Page App with Vue 3 + Vite and Pinia
This guide will cover in detail the steps to create a functional example bookstore single page application using Vue 3 and run it...
Read more >Introducing Vite: A Better Vue CLI? - CODE Magazine
Because you're not building your project during development, the startup speed and compilation time is greatly reduced. Although these benefits ...
Read more >API - ESBuild
However, run-time file system emulation is out of scope and will not be ... The JavaScript minification algorithm in esbuild usually generates output...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes! success in Safari
Then, I think tauri is using a different version of Safari.
Closing as this is not a bug in Vite. (Vite doesn’t support old browsers during dev)