Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: Invalid URL in renderer #4165

Closed
1 task
neuro-bro opened this issue Aug 5, 2022 · 2 comments
Closed
1 task

🐛 BUG: Invalid URL in renderer #4165

neuro-bro opened this issue Aug 5, 2022 · 2 comments

Comments

@neuro-bro
Copy link

What version of astro are you using?

v1.0.0-rc.6

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Linux

Describe the Bug

Error with trace is shown below. Points to start of "---" front-matter in the debugger and only started happening with latest releases.

error Invalid URL
Code:
> 1 | ---
| ^
2 | import { t } from "i18next";
3 | import { HeadHrefLangs } from "astro-i18next/components";

Stacktrace:
at new NodeError (node:internal/errors:371:5)
at onParseError (node:internal/url:552:9)
at new URL (node:internal/url:628:5)
at /XXXXXXX/src/components/core/BaseLayoutHead.astro:1:0
at renderToIterable (/node_modules/astro/dist/runtime/server/index.js:544:27)
at renderAstroComponentInline (/node_modules/astro/dist/runtime/server/index.js:161:28)
at renderAstroComponentInline.next ()
at _render (/node_modules/astro/dist/runtime/server/index.js:39:5)
at async AstroComponent.[Symbol.asyncIterator] (/node_modules/astro/dist/runtime/server/index.js:58:7)
at async renderAstroComponent (/node_modules/astro/dist/runtime/server/index.js:675:20)

Link to Minimal Reproducible Example

N/A

Participation

  • I am willing to submit a pull request for this issue.
@neuro-bro
Copy link
Author

Possibly related to #4164

@neuro-bro
Copy link
Author

Actually, closing since I believe I have tracked it down to:

import { HeadHrefLangs } from "astro-i18next/components";

Probably not using the latest Astro.url object that's recently been updated in the framework in case anyone else has trouble with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant