You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error is happening as soon as I launch my astro project.
At first it was working insanely great, but at some point (and I don't know why) it started showing this error constantly.
TypeError
An error occurred.
Invalid URL
src/index.js:12:30050
TypeError: Invalid URL
at new URL (node:internal/url:797:36)
at set route [as route] (/i18n-bug/node_modules/astro-i18n/dist/src/index.js:12:30050)
at /i18n-bug/node_modules/astro-i18n/dist/src/index.js:12:36680
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async callMiddleware (file:///i18n-bug/node_modules/astro/dist/core/middleware/callMiddleware.js:21:10)
at async RenderContext.render (file:///i18n-bug/node_modules/astro/dist/core/render-context.js:148:22)
at async handleRoute (file:///i18n-bug/node_modules/astro/dist/vite-plugin-astro-server/route.js:209:18)
at async run (file:///i18n-bug/node_modules/astro/dist/vite-plugin-astro-server/request.js:40:14)
at async runWithErrorHandling (file:///i18n-bug/node_modules/astro/dist/vite-plugin-astro-server/controller.js:64:5)
at async handleRequest (file:///i18n-bug/node_modules/astro/dist/vite-plugin-astro-server/request.js:34:3)
I didn't event import astroI18n or a translation function into the page.
Got the same issue, on setup it worked and after i18n:sync it broke with that error and never worked again, with this bug this otherwise great lib is unusable. Tried downgrading both astro and astro-i18n versions but did not help. Did not matter if there was only one language or multiple.
@Alexandre-Fernandez Is it possible this will be fixed? I found out that it does work when you have created 404.astro page and have [email protected] at the most.
Describe the bug
Versions:
An error is happening as soon as I launch my astro project.
At first it was working insanely great, but at some point (and I don't know why) it started showing this error constantly.
I didn't event import astroI18n or a translation function into the page.
To Reproduce
Expected behavior
Website should show pages.
Mandatory reproduction repository
Add a git repository to reproduce the bug.
Thanks a lot!
The text was updated successfully, but these errors were encountered: