Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: No logs when accessing page from phone on network Vite server #209

Open
anthfgreco opened this issue Oct 4, 2023 · 0 comments

Comments

@anthfgreco
Copy link

anthfgreco commented Oct 4, 2023

What happened?

I'm expecting to see logs in the Console Output from accessing the page (192.168.2.201:5173) in Safari on my iPhone 14 but nothing shows up.

Accessing the page from the same computer (localhost:5173 or 192.168.2.201:5173) the Vite server is being hosted from works as expected and produces logs in the Console Output.

I've tried adding my phones IP to allowed hosts and tried disabling my firewall to no avail. Any help would be appreciated!

Version

v0.0.228 (latest)

Steps to reproduce (or sample repo)

  1. Generate a new Vite project: npm create vite@latest
  2. Add a simple console.log("count", count); to App.tsx
  3. In the package.json, change vite to host on local network: "dev": "vite --host"
  4. Using your mobile device, connect to the network address and notice no logs show in the Console Output

Log output

00:27:23.615 info extension stopping host
00:27:23.652 info buildHook-10840 client disconnected: 1006 
00:27:23.652 info buildHook-10840 disconnected from host: 50447
00:27:23.652 info buildHook-10840 disconnected from all hosts
00:27:23.846 info extension client disconnected: 1006 
00:27:34.072 info extension stopping host
00:27:34.723 info extension host process output: port:[50447]
00:27:34.679 info host ------------ starting ------------
00:27:34.723 info extension 
00:27:34.759 info host client connected: extension { address: '::', family: 'IPv6', port: 50447 }
00:27:35.150 info host worker Starting Host Worker...
00:27:35.276 info host starting host: {"extensionFolder":"c:\\Users\\Anthony\\.vscode\\extensions\\wallabyjs.console-ninja-0.0.228","runtimeHookFile":"c:\\Users\\Anthony\\.vscode\\extensions\\wallabyjs.console-ninja-0.0.228\\out\\runtimeHook\\tracer.js","globalErrorHandlerFile":"c:\\Users\\Anthony\\.vscode\\extensions\\wallabyjs.console-ninja-0.0.228\\out\\runtimeHook\\errorHandler.js","filesToInstrument":[{"path":"c:\\users\\anthony\\desktop\\test-vite-project\\src\\app.tsx","reason":"search"},{"path":"c:\\Users\\Anthony\\Desktop\\test-vite-project\\src\\App.tsx","reason":"open"}],"debug":false,"config":{"dateTimeFormat":"HH:mm:ss.SSS","showDateTime":true,"installBinToPath":true,"openLinksInEditor":true,"maxLogViewerEntries":15000,"fontSize":12,"autoClearLogViewerOnFileChanges":true,"outputMode":"Beside File","captureFunctions":false,"searchUrl":"https://www.google.com/search?q={query}","enableProFeatures":false,"toolsToAutoPatch":["vite","jest","webpack","next.js","cypress","http-server","serve","live-server","nuxt","remix","qwik","hydrogen","serverless","astro"],"showErrors":true,"showLogsOnlyFromOpenedFiles":false,"showLogsFromLogPointsOnly":false,"showLogsFromMultipleRunningToolsTogether":false},"allowedHosts":["localhost","127.0.0.1","example.cypress.io","ANTHONY-PC","192.168.2.185","192.168.2.201"],"host":"127.0.0.1"}
00:27:35.301 info host starting tools discovery and integration
00:27:35.311 info host looking for tools to patch
00:27:35.409 info host found 1 tool file(s) to patch
00:27:35.411 info host patching c:\users\anthony\desktop\test-vite-project\node_modules\vite\bin\vite.js
00:27:35.413 info host completed tools discovery and integration
00:27:54.792 info buildHook-17068 installing build hook for vite at c:\users\anthony\desktop\test-vite-project, node v20.7.0
00:27:54.812 info host client connected: buildHook { address: '::', family: 'IPv6', port: 50447 }
00:27:54.805 info buildHook-17068 allowed tools: vite, jest, webpack, next.js, cypress, http-server, serve, live-server, nuxt, remix, qwik, hydrogen, serverless, astro, node
00:27:54.805 info buildHook-17068 running tools: vite
00:27:54.807 info buildHook-17068 installing fs interceptor
00:27:54.818 info buildHook-17068 allowed tools: vite, jest, webpack, next.js, cypress, http-server, serve, live-server, nuxt, remix, qwik, hydrogen, serverless, astro, node
00:27:54.818 info buildHook-17068 running tools: vite
00:27:55.098 info buildHook-17068 file processed (stat): 0 log points, error handler: true
00:27:55.169 info buildHook-17068 file processed (stat): 1 log points, error handler: false
00:28:02.550 info host client connected: runtimeHook { address: '::', family: 'IPv6', port: 50447 }
00:28:02.771 info host client connected: runtimeHook { address: '::', family: 'IPv6', port: 50447 }
00:28:34.722 info host removing cache folder: 120077e3462322d6d7c6464808484a73
@ArtemGovorov ArtemGovorov changed the title [Bug]: No logs when accessing page from phone on network Vite server [Feature]: No logs when accessing page from phone on network Vite server Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants