Skip to content

ERROR toolbar #13841

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

Open
1 task
fromgopi opened this issue May 22, 2025 · 13 comments · May be fixed by #13862
Open
1 task

ERROR toolbar #13841

fromgopi opened this issue May 22, 2025 · 13 comments · May be fixed by #13862
Labels
- P2: has workaround Bug, but has workaround (priority) feat: toolbar Related to dev toolbar (scope) needs response Issue needs response from OP

Comments

@fromgopi
Copy link

fromgopi commented May 22, 2025

Astro Info

Astro                    v5.7.13
Node                     v18.20.3
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/tailwind
                         @astrojs/react

If this issue only occurs in one browser, which browser is a problem?

Chrome, Brave, Firefox

Describe the Bug

[ERROR] [toolbar] Failed to initialize dev toolbar app Menu (astro:home):
TypeError: Cannot read properties of undefined (reading 'latestAstroVersion')
at createCanvas (http://localhost:4321/node_modules/astro/dist/runtime/client/dev-toolbar/apps/astro.js?v=c0f2c8f5:60:60)
at Object.init (http://localhost:4321/node_modules/astro/dist/runtime/client/dev-toolbar/apps/astro.js?v=c0f2c8f5:15:5)
at AstroDevToolbar.initApp (http://localhost:4321/node_modules/astro/dist/runtime/client/dev-toolbar/toolbar.js?v=c0f2c8f5:342:23)
at http://localhost:4321/node_modules/astro/dist/runtime/client/dev-toolbar/toolbar.js?v=c0f2c8f5:273:39
at Array.map ()
at window.requestIdleCallback.timeout (http://localhost:4321/node_modules/astro/dist/runtime/client/dev-toolbar/toolbar.js?v=c0f2c8f5:273:21)

What's the expected result?

Main astro page when running npm run dev

Link to Minimal Reproducible Example

https://stackblitz.com/edit/withastro-astro-lo8u7psl?file=astro.config.mjs&title=Astro%20Starter%20Kit:%20Basics

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label May 22, 2025
@ChaseYalon
Copy link

Hi! Could you provide some sort of reproducible example in Stack Blitz. Also I am not sure we can do anything as Astro no longer supports node 18. Thank

@ChaseYalon
Copy link

Also is this an issue in other Chromium browsers like edge?

@fromgopi
Copy link
Author

@ChaseYalon
I have added reproducible example in Stack Blitz

@florian-lefebvre
Copy link
Member

The error cannot be reproduced in the provided stackblitz

@florian-lefebvre florian-lefebvre added the needs repro Issue needs a reproduction label May 26, 2025
Copy link
Contributor

Hello @fromgopi. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs repro will be closed if they have no activity within 3 days.

@github-actions github-actions bot removed the needs triage Issue needs to be triaged label May 26, 2025
@fromgopi
Copy link
Author

@florian-lefebvre
I have alread added a stackBlitz link. Please do check it.

@florian-lefebvre
Copy link
Member

I know thanks. What I'm saying is that in its current state, no error is thrown in the terminal nor the browser console on stackblitz. Can you update the repro so it actually throws the error you're talking about in the issue description?

@fromgopi
Copy link
Author

@florian-lefebvre Ok I will update it the repro.

@fromgopi
Copy link
Author

@florian-lefebvre
Copy link
Member

I opened it in stackblitz (https://stackblitz.com/github/agtranstech/dairyvista-homepage/tree/stage) and cannot reproduce the bug either 🤔. Not sure what's going on

@florian-lefebvre
Copy link
Member

Looking at the error, I think window.__astro_dev_toolbar__ is not being set for some reason. Can you try in private navigation without any browser extension enabled?

@florian-lefebvre florian-lefebvre added needs response Issue needs response from OP needs triage Issue needs to be triaged feat: toolbar Related to dev toolbar (scope) and removed needs repro Issue needs a reproduction labels May 27, 2025
@fromgopi
Copy link
Author

I will check.

@florian-lefebvre florian-lefebvre linked a pull request May 28, 2025 that will close this issue
@florian-lefebvre
Copy link
Member

@fromgopi can you try with this preview release?

npm i https://pkg.pr.new/astro@13862

@florian-lefebvre florian-lefebvre added - P2: has workaround Bug, but has workaround (priority) and removed needs triage Issue needs to be triaged labels May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P2: has workaround Bug, but has workaround (priority) feat: toolbar Related to dev toolbar (scope) needs response Issue needs response from OP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants