question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The typescripe project compiled by vite cannot run normally on safari, but it can run normally on chrome

See original GitHub issue

Describe the bug

https://github.com/tauri-apps/create-tauri-app/issues/87 image Then I start the project through the command about npm run tauri dev, but it gives an error when rendering。 image Below is info of npm run tauri info: image image Below is struct of the project: image

image

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
zw201913commented, Jul 31, 2022

Yes! success in Safari image

image
0reactions
sapphi-redcommented, Jul 31, 2022

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found