nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.12k stars 623 forks source link

Rollup failed to resolve import "#components" in 2.13.3 #2812

Closed dolbex closed 4 weeks ago

dolbex commented 4 weeks ago

Environment


Reproduction

We experienced this during build both locally and on Github actions. I'm not quite sure how to reproduce a build error experience.

Describe the bug

Update from 2.13.2 to 2.13.3 resulted in this error for us:

#13 19.06 ERROR Nuxt Build Error: [vite]: Rollup failed to resolve import "#components" from "virtual:nuxt:/home/bun/app/.nuxt/mdc-image-component.mjs".

Additional context

Only content I believe we have in this particular project is a json file with an array of objects like

[
  {
    "id": 1,
    "name": "Goroka",
    "city": "Goroka",
    "country": "Papua New Guinea",
    "faa_code": "GKA",
    "icao_code": "AYGA",
    "lat": -6.081689,
    "lng": 99.99999999,
    "altatude": 5282,
    "timezone": 10,
    "dst": "U",
    "timezone_wiki_uri": "Pacific/Port_Moresby"
  },
]

Logs

No response

dolbex commented 4 weeks ago

Looks like this might be resolved with the update in 2.13.4 with the bump to mdc. Testing.

farnabaz commented 4 weeks ago

Thanks for the report. Should be fixed in 2.13.4 hotfix.

Checkout #2811

dolbex commented 4 weeks ago

Thanks for the quick response @farnabaz !