Skip to content

Content Asset Propagation: Astro tag component is not a function #13085

@thomasledoux1

Description

@thomasledoux1

Astro Info

Astro                    v5.1.10
Node                     v22.13.1
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  @astrojs/vercel
Integrations             @astrojs/tailwind
                         @astrojs/react
                         astro-expressive-code
                         @astrojs/mdx
                         astro:db
                         @astrojs/db/file-url
                         @astrojs/sitemap
                         pagefind

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

No response

Describe the Bug

When I try to build my Astro application since upgrading to the latest Astro version, I'm getting the following error:

13:26:43 [ERROR] [vite] x Build failed in 3.60s
[astro:content-asset-propagation] (0 , vite_ssr_import_1.astro_tag_component) is not a function
file: /Users/thomasledoux/Documents/website-thomas-astro/src/data/blog/basic-analytics-vercel-postgres-astro.mdx?astroPropagatedAssets
Stack trace:
at eval (/Users/thomasledoux/Documents/website-thomas-astro/src/data/blog/basic-analytics-vercel-postgres-astro.mdx:12187:50)
at async SSRCompatModuleRunner.directRequest (file:///Users/thomasledoux/Documents/website-thomas-astro/node_modules/vite/dist/node/module-runner.js:1271:61)
at async SSRCompatModuleRunner.cachedRequest (file:///Users/thomasledoux/Documents/website-thomas-astro/node_modules/vite/dist/node/module-runner.js:1167:76)
at async instantiateModule (file:///Users/thomasledoux/Documents/website-thomas-astro/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:30774:12)
at async transform (file:///Users/thomasledoux/Documents/website-thomas-astro/node_modules/rollup/dist/es/shared/node-entry.js:19663:16)

What's the expected result?

The build to go through fine as it was before upgrading the Astro version.

Link to Minimal Reproducible Example

https://stackblitz.com/~/github.com/thomasledoux1/website-thomas-astro

Participation

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproIssue needs a reproduction

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions