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.

Vite not working in macOS Monterey

See original GitHub issue

Describe the bug

Following the basic instructions does not work.

  1. yarn create vite my-vite-app --template vue-ts
  2. cd my-vite-app
  3. yarn && yarn serve
  4. To localhost:5000 2021-11-16 at 16:55

Reproduction

N/A

System Info

System:
    OS: macOS 12.0.1
    CPU: (8) arm64 Apple M1
    Memory: 1.42 GB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.9.1 - /usr/local/bin/node
    Yarn: 1.22.15 - /opt/homebrew/bin/yarn
    npm: 7.21.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 95.0.4638.69
    Firefox: 94.0.1
    Safari: 15.1
  npmPackages:
    @vitejs/plugin-vue: ^1.9.3 => 1.9.4 
    vite: ^2.6.4 => 2.6.13

Used Package Manager

yarn

Logs

No response

Validations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
Niputicommented, Nov 16, 2021

please try changing the port. if i remember right, Apple have been so evil they took control over this port for a component

2reactions
hannoerucommented, Dec 31, 2021

5000 port is used by Airplay Receiver, you can turn it off on System Preference => Sharing => Airplay Receiver

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Vite
If you are running Vite with WSL2, Vite cannot watch file changes in some conditions. See server.watch option. A full reload happens instead...
Read more >
Laravel 9 (with Sail, Vite, Inertia and Vue ) - HMR not working?
I am working on a Macbook M1, sail (docker), vite, inertia, vuejs. It turned out the problem was case sensitive filenames. In my...
Read more >
Unable to read current working directory: Operation not ...
Go to System Preferences -> Security & Privacy -> Privacy tab · Select "Full Disk Access" from the left-side menu · Add Terminal...
Read more >
Use Siri on Mac - Apple Support
The top-right portion of the Mac desktop showing the Siri icon in the menu. Turn on Siri. On your Mac, choose Apple menu...
Read more >
Comment installer MAC OS MONTEREY sans problème, on ...
Mac OS Monterey : https://www.apple.com/fr/ macos / monterey /Comment effectuer la mise à jour ...
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