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

Browser shows "Cannot read properties of null (reading 'invalidateTypeCache')" error with "@astrojs/vue" integration #12969

Open
1 task
Smart-Ace-Designs opened this issue Jan 11, 2025 · 0 comments
Labels
needs triage Issue needs to be triaged

Comments

@Smart-Ace-Designs
Copy link

Astro Info

Astro                    v5.1.5
Node                     v22.12.0
System                   Windows (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             @astrojs/vue

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

No response

Describe the Bug

  1. Deploy new Astro project with "npm create astro@latest" (blank project; select option to install dependencies)
  2. Run "npx astro add vue"
  3. Run "npm run dev"
  4. Open browser to localhost:4321 - appears normal and default page is displayed
  5. Close browser and kill dev environment
  6. Run "npm run dev" again
  7. Again, open browser - this time "Cannot read properties of null (reading 'invalidateTypeCache')" is displayed
  8. Refresh browser and default page is displayed and error goes away
  9. Repeat steps 5-8 with same results every time

image

Tried same process on another machine, same results...does not appear to be isolated to a single machine.

For the StackBlitz reproduction, I am just including the default template provided for Vue:
https://stackblitz.com/github/withastro/astro/tree/latest/examples/framework-vue?file=README.md&on=stackblitz

Ctrl-c to stop the initial dev environment and then run "npm run dev" again, and you will see the error show up immediately:

image

What's the expected result?

Default page should load each time with no error, when Astro Vue integration is added to project.

image

...should not have to refresh browser (F5) to get this to appear.

Link to Minimal Reproducible Example

https://stackblitz.com/github/withastro/astro/tree/latest/examples/framework-vue?file=README.md&on=stackblitz

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 Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant