#"Unable to get file name from unknown file" error from [astro:markdown]

6 messages · Page 1 of 1 (latest)

wispy tapir
#

I'm converting a site from mdx to md with the experimental astro:assets and for some reason while dev mode runs fine, trying to build results in [astro:markdown] errors about unknown file file names.

rendering chunks (3)...[astro:markdown] Plugin error - Unable to get file name for unknown file "96b3b895".
 error   Plugin error - Unable to get file name for unknown file "96b3b895".
RollupError: Plugin error - Unable to get file name for unknown file "96b3b895".
    at error (file:///Users/scott/Sites/scottwillsey2.0/node_modules/rollup/dist/es/shared/node-entry.js:2095:30)
    at FileEmitter.getFileName (file:///Users/scott/Sites/scottwillsey2.0/node_modules/rollup/dist/es/shared/node-entry.js:23787:24)
    at Object.generateBundle (file:///Users/scott/Sites/scottwillsey2.0/node_modules/astro/dist/vite-plugin-markdown/index.js:181:35)
    at async Bundle.generate (file:///Users/scott/Sites/scottwillsey2.0/node_modules/rollup/dist/es/shared/node-entry.js:17207:9)
    at async file:///Users/scott/Sites/scottwillsey2.0/node_modules/rollup/dist/es/shared/node-entry.js:25434:27
    at async catchUnfinishedHookActions (file:///Users/scott/Sites/scottwillsey2.0/node_modules/rollup/dist/es/shared/node-entry.js:24526:20)
    at async Module.build (file:///Users/scott/Sites/scottwillsey2.0/node_modules/vite/dist/node/chunks/dep-9912c491.js:44647:22)
    at async clientBuild (file:///Users/scott/Sites/scottwillsey2.0/node_modules/astro/dist/core/build/static-build.js:196:23)
    at async viteBuild (file:///Users/scott/Sites/scottwillsey2.0/node_modules/astro/dist/core/build/static-build.js:64:24)
    at async AstroBuilder.build (file:///Users/scott/Sites/scottwillsey2.0/node_modules/astro/dist/core/build/index.js:121:27)

I've previously converted an mdx site to md without issue so either I'm forgetting to do something simple or there's been a change in Astro 2.1.0 that means the process is different now. Any thoughts on how to debug this unknown file error?

Thanks.

rare bridge
#

Can you show the Markdown file where this happens?

#

It's highly possible that it's a bug in the new assets support, though

wispy tapir
#

That's the problem, I'm not sure which file is causing it. I'll do a test case where I move them out of the collection and start trying to isolate it.

wispy tapir