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

ReferenceError: LANGS is not defined #10367

Closed
saschanaz opened this issue Mar 19, 2023 · 4 comments
Closed

ReferenceError: LANGS is not defined #10367

saschanaz opened this issue Mar 19, 2023 · 4 comments
Labels
⚠️bug? This might be a bug

Comments

@saschanaz
Copy link
Member

saschanaz commented Mar 19, 2023

💡 Summary

ローカルでテストする時よくみるエラー

//#region Detect language & fetch translations
if (!localStorage.hasOwnProperty('locale')) {
const supportedLangs = LANGS;
let lang = localStorage.getItem('lang');

実際LANGSはない

🥰 Expected Behavior

エラーが出ない

🤬 Actual Behavior

エラーがでる

📝 Steps to Reproduce

よくわかりません。コードみたら100%発生しそうにも見えますがそんなことはないのでちょっと謎です

📌 Environment

Misskey version: ac0e012
Your OS: Windows 11
Your browser: Firefox

@saschanaz saschanaz added the ⚠️bug? This might be a bug label Mar 19, 2023
@skyinthehand
Copy link

手動でOCIにインストールしたところproductionビルドにも関わらず同様のエラーが発生します
ブラウザ上の表示は「Failed to load
読み込みに失敗しました」となっています

@zyoshoka

This comment was marked as duplicate.

@zyoshoka
Copy link
Contributor

#12861 で言及されていたようです(重複失礼しました)

@zyoshoka
Copy link
Contributor

Fixed by #13659

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug
Projects
None yet
Development

No branches or pull requests

3 participants