Closed natemoo-re closed 10 months ago
Confirming that this still happens on the latest. It seems like we're attempting to parse the specifier as a URL somewhere, which obviously doesn't work in this case.
I wish we had a stricter way to pass the entry points. We could monkey patch it with a try/catch, but I believe this isn't the correct fix. We should change the API and make it more strict, to provide better validation.
I am going to close this because we don't violate any documentation and it seems it isn't designed for that. If so, we should understand how this works at rollup level.
What version of
astro
are you using?2.0.14
Are you using an SSR adapter? If so, which one?
Any
What package manager are you using?
pnpm
What operating system are you using?
macOS
Describe the Bug
Expected
astro:config:setup
'sinjectRoute
hook to support virtual file entry that is resolved by Rollup.Instead, I get a cryptic error:
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-lbykhk?file=astro.config.mjs,integration.js
Participation