Skip to content

Failed to get locale informations #1961

@torn4dom4n

Description

@torn4dom4n

What version of starlight are you using?

0.24.0

What version of astro are you using?

4.9.3

What package manager are you using?

bun

What operating system are you using?

Windows

What browser are you using?

Chrome

Describe the Bug

I get this bug after updating Starlight to v0.24.0

1:58:17 AM [vite] Error when evaluating SSR module /node_modules/@astrojs/starlight/utils/i18n.ts:
|- AstroUserError: Failed to get locale informations for the 'en' locale.
    at new AstroUserError (C:\Users\Windows\Documents\GitHub\AREA44\playastro\node_modules\astro\dist\core\errors\errors.js:96:9)
    at getLocaleInfo (:99:47)
    at <anonymous> (:5:48)
    at processTicksAndRejections (:12:39)

1:58:17 AM [vite] Error when evaluating SSR module /node_modules/@astrojs/starlight/integrations/shared/localeToLang.ts: failed to import "/node_modules/@astrojs/starlight/utils/i18n.ts"
|- AstroUserError: Failed to get locale informations for the 'en' locale.
    at new AstroUserError (C:\Users\Windows\Documents\GitHub\AREA44\playastro\node_modules\astro\dist\core\errors\errors.js:96:9)
    at getLocaleInfo (:99:47)
    at <anonymous> (:5:48)
    at processTicksAndRejections (:12:39)

1:58:17 AM [vite] Error when evaluating SSR module /node_modules/@astrojs/starlight/integrations/expressive-code/translations.ts: failed to import "/node_modules/@astrojs/starlight/integrations/shared/localeToLang.ts"
|- AstroUserError: Failed to get locale informations for the 'en' locale.
    at new AstroUserError (C:\Users\Windows\Documents\GitHub\AREA44\playastro\node_modules\astro\dist\core\errors\errors.js:96:9)
    at getLocaleInfo (:99:47)
    at <anonymous> (:5:48)
    at processTicksAndRejections (:12:39)

1:58:17 AM [vite] Error when evaluating SSR module /node_modules/@astrojs/starlight/integrations/expressive-code/index.ts: failed to import "/node_modules/@astrojs/starlight/integrations/expressive-code/translations.ts"
|- AstroUserError: Failed to get locale informations for the 'en' locale.
    at new AstroUserError (C:\Users\Windows\Documents\GitHub\AREA44\playastro\node_modules\astro\dist\core\errors\errors.js:96:9)
    at getLocaleInfo (:99:47)
    at <anonymous> (:5:48)
    at processTicksAndRejections (:12:39)

1:58:17 AM [vite] Error when evaluating SSR module /node_modules/@astrojs/starlight/index.ts: failed to import "/node_modules/@astrojs/starlight/integrations/expressive-code/index.ts"
|- AstroUserError: Failed to get locale informations for the 'en' locale.
    at new AstroUserError (C:\Users\Windows\Documents\GitHub\AREA44\playastro\node_modules\astro\dist\core\errors\errors.js:96:9)
    at getLocaleInfo (:99:47)
    at <anonymous> (:5:48)
    at processTicksAndRejections (:12:39)

1:58:17 AM [vite] Error when evaluating SSR module C:\Users\Windows\Documents\GitHub\AREA44\playastro\astro.config.ts: failed to import "/node_modules/@astrojs/starlight/index.ts"
|- AstroUserError: Failed to get locale informations for the 'en' locale.
    at new AstroUserError (C:\Users\Windows\Documents\GitHub\AREA44\playastro\node_modules\astro\dist\core\errors\errors.js:96:9)
    at getLocaleInfo (:99:47)
    at <anonymous> (:5:48)
    at processTicksAndRejections (:12:39)

[astro] Unable to load your Astro config

[AstroUserError] Failed to get locale informations for the 'en' locale.
  Hint:
    Make sure to provide a valid BCP-47 tags (e.g. en, ar, or zh-CN).
  Stack trace:
    at new AstroUserError (C:\Users\Windows\Documents\GitHub\AREA44\playastro\node_modules\astro\dist\core\errors\errors.js:96:9)
    at <anonymous> (:5:48)
error: script "dev" exited with code 1

Link to Minimal Reproducible Example

https://github.com/AREA44/playastro/tree/bump-starlight

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions