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

[Misskey 2023.12.0-beta.1] 設定のテーマを開くと永遠にローディングする #12547

Closed
shiosyakeyakini-info opened this issue Dec 3, 2023 · 3 comments
Assignees
Labels
🐛Bug Unexpected behavior packages/frontend Client side specific issue/PR

Comments

@shiosyakeyakini-info
Copy link
Contributor

💡 Summary

#12536 ( #12528 ) の修正で、パスの呼び先を__dirnameに変えましたが、ブラウザで設定のテーマを開くと永遠にローディングする状態となっているようです。
Chromeの開発者コンソールで動作を確認すると、下記のエラーが表示されていました。

theme.ts:47 Uncaught (in promise) ReferenceError: __dirname is not defined
    at theme.ts:47:35
    at Array.map (<anonymous>)
    at getBuiltinThemes (theme.ts:47:4)
    at getBuiltinThemesRef (theme.ts:52:2)
    at setup (theme.vue:93:23)
    at callWithErrorHandling (runtime-core.esm-bundler.js:158:18)
    at setupStatefulComponent (runtime-core.esm-bundler.js:7323:25)
    at setupComponent (runtime-core.esm-bundler.js:7284:36)
    at mountComponent (runtime-core.esm-bundler.js:5679:7)
    at processComponent (runtime-core.esm-bundler.js:5645:9)

🥰 Expected Behavior

設定のテーマ画面が開く

🤬 Actual Behavior

設定のテーマ画面が開かない

📝 Steps to Reproduce

  1. pnpm devでMisskeyを起動する
  2. 設定のテーマを開く

💻 Frontend Environment

* Model and OS of the device(s): macOS Ventura 13.5.1
* Browser: Chrome 119.0
* Server URL: localhost
* Misskey: 2023.12.0-beta.1 (developブランチ)

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service: development environment (devcontainer)
* Misskey: 2023.12.0-beta.1 (developブランチの12/1時点)
* Node: v20.10.0
* PostgreSQL:
* Redis:
* OS and Architecture: macOS Ventura 13.5.1
@shiosyakeyakini-info shiosyakeyakini-info added the ⚠️bug? This might be a bug label Dec 3, 2023
@samunohito samunohito self-assigned this Dec 3, 2023
@samunohito samunohito added 🐛Bug Unexpected behavior packages/frontend Client side specific issue/PR and removed ⚠️bug? This might be a bug labels Dec 3, 2023
@samunohito
Copy link
Member

pnpm startで起動した場合も再現しました。確認します

@shiosyakeyakini-info
Copy link
Contributor Author

こっちをクローズして #12528 を再び開いたほうがいい気がする

@samunohito
Copy link
Member

GitHubの機能で勝手に閉じられてしまったっぽいので、reopenしました。こっちは閉じておきます

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug Unexpected behavior packages/frontend Client side specific issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants