Skip to content

transport was disconnected, cannot call "fetchModule" #12611

@mandar1jn

Description

@mandar1jn

Astro Info

Astro                    v5.0.1
Node                     v18.20.3
System                   Linux (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             @astrojs/mdx
                         @astrojs/sitemap

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

No response

Describe the Bug

Modifying tsconfig.json while the dev server is running throws a "transport was disconnected, cannot call "fetchModule"" exception

Steps:

  1. create a project from the blog temple
  2. start the dev server
  3. open one of the blog posts
  4. modify the tsconfig.json
  5. look at the console

What's the expected result?

No exception should be thrown

Link to Minimal Reproducible Example

https://stackblitz.com/github/withastro/astro/tree/latest/examples/blog?file=tsconfig.json

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P2: has workaroundAn edge case that only affects very specific usage, but has a trivial workaround (priority)feat: devRelated to `astro dev` CLI command (scope)feat: hmrRelated to HMR (scope)pkg: astroRelated to the core `astro` package (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions