sharunkumar / sharunkumar.github.io

My Portfolio
https://sharunkumar.com/
MIT License
0 stars 0 forks source link

`astro dev` throws 'querySelectorAll' error with ngrok tunneling #9

Open arunsathiya opened 2 hours ago

arunsathiya commented 2 hours ago
 astro  v4.16.6 ready in 287 ms

┃ Local    http://localhost:4321/
┃ Network  use --host to expose

07:43:19 watching for file changes...
07:43:36 [200] / 13ms
07:43:50 [200] / 30ms
07:44:01 [200] / 22ms
07:44:02 [200] / 20ms
07:44:04 [200] / 18ms
07:44:08 [ERROR] [toolbar] Failed to initialize dev toolbar app Audit (astro:audit):
Error: Failed to execute 'querySelectorAll' on 'Document': '[role]:not(button,details,embed,iframe,label,select,textarea,a,input,audio,img,object,video)' is not a valid selector.
    at lint (https://4100-2a09-bac5-3fed-1e0a-00-2fe-40.ngrok-free.app/node_modules/astro/dist/runtime/client/dev-toolbar/apps/audit/index.js?v=0eaaa639:108:73)
    at async Object.init (https://4100-2a09-bac5-3fed-1e0a-00-2fe-40.ngrok-free.app/node_modules/astro/dist/runtime/client/dev-toolbar/apps/audit/index.js?v=0eaaa639:26:5)
    at async HTMLElement.initApp (https://4100-2a09-bac5-3fed-1e0a-00-2fe-40.ngrok-free.app/node_modules/astro/dist/runtime/client/dev-toolbar/toolbar.js?v=0eaaa639:343:7)

I don't know if this is happening only when I tunnel with ngrok, but wanted to flag so that you can review as you see fit.

sharunkumar commented 2 hours ago

just use cloudflared: bun serve:public

sharunkumar commented 2 hours ago

also share exact steps you are doing?

arunsathiya commented 2 hours ago
bun dev
bun install
ngrok http 4321

I think open site too.

Check logs on the terminal at that point.

sharunkumar commented 52 minutes ago
bun dev
bun install
ngrok http 4321

I think open site too.

Check logs on the terminal at that point.

should do bun install before dev