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

Fix: vue-devtools が起動しない問題を修正 #1362

Merged
merged 2 commits into from
Jul 1, 2023

Conversation

shm11C3
Copy link
Contributor

@shm11C3 shm11C3 commented Jul 1, 2023

内容

概要

npm run electron:serve 実行時に以下のようなエラーを吐いて vue-devtools が起動しなかったため修正しました。
[error] Vue Devtools failed to install: Error: Invalid header: Does not start with Cr24

原因

electron-devtools-installer で設定されていた extension id が古く参照できなくなっていたたため

参考:MarshallOfSound/electron-devtools-installer#222 (comment)

修正内容

  • src/background.tsVUEJS3_DEVTOOLSVUEJS_DEVTOOLS に変更

スクリーンショット

修正前

修正前

修正後

修正後

@shm11C3 shm11C3 requested a review from a team as a code owner July 1, 2023 04:47
@shm11C3 shm11C3 requested review from y-chan and removed request for a team July 1, 2023 04:47
@@ -991,9 +991,9 @@ app.once("will-finish-launching", () => {
});

app.on("ready", async () => {
if (isDevelopment) {
if (isDevelopment && !isTest) {
Copy link
Contributor Author

@shm11C3 shm11C3 Jul 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

テスト実行時でも isDevelopment === true になるようで、タイムアウトになってCIが通らなくなっていました。
E2Eテストにvue-devtools のインストールは必要なさそうだったので条件を追加しましたが、なにか問題があれば教えていただきたいです。

Copy link
Member

@y-chan y-chan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Hiroshiba Hiroshiba merged commit eaa0056 into VOICEVOX:main Jul 1, 2023
4 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants