Skip to content

@sentry/astro 11.15+: astro sync / astro check fail with 'The "isEntry" property of ModuleInfo is not supported' (server release plugin) #26724

Closed

Description

@MountainsCalling-me

Is there an existing issue for this?

Which SDK are you using?

@sentry/astro

SDK Version

11.16.0 (also expected on 11.15.0, where the plugin was introduced; 11.14.0 works)

Framework Version

astro 7.4.13, @astrojs/cloudflare 14.4.9, vite 8.3.8, Node 26.13.1

Steps to Reproduce

  1. An Astro 7 project with the @astrojs/cloudflare adapter, content collections, and the @sentry/astro integration in astro.config.mjs.
  2. Upgrade @sentry/astro from 11.14.0 to 11.16.0.
  3. Run astro sync or astro check.

I have only reproduced this in one project, so I can't say which of the conditions above are required.

Expected Result

astro sync / astro check complete, as they do on 11.14.0.

Actual Result

[GenerateContentTypesError] `astro sync` command failed to generate content collection types: [vite] The "isEntry" property of ModuleInfo is not supported..
  Caused by:
  [vite] The "isEntry" property of ModuleInfo is not supported.
    at Object.get (node_modules/vite/dist/node/chunks/node.js:8451:10)
    at EnvironmentPluginContainer.transform (node_modules/vite/dist/node/chunks/node.js:8636:51)

The read comes from the sentry-astro-server-release plugin added in #26506 (packages/astro/src/integration/release.ts):

const isEntry = this.getModuleInfo(id)?.isEntry || WORKER_ENTRY_IDS.some(entryId => id.includes(entryId));

Vite's dev-mode plugin container (which astro sync uses) returns a ModuleInfo proxy that throws on any property it does not support, and isEntry is one of them, so the transform hook throws. I have not tested whether astro build is affected on 11.16.0.

Possible fix: skip the hook outside a build (apply: 'build'), or guard the isEntry read.

Activity

  1. linear-code commented on Nov 21, 2026

    @linear-code
  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Nov 21, 2026
  3. self-assigned this
    on Nov 23, 2026
  4. andreiborza commented on Nov 23, 2026

    @andreiborza
    Member

    Fixed by #26725 and will go out with the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions