MarshallOfSound / electron-devtools-installer

An easy way to ensure Chrome DevTools extensions into Electron
MIT License
1.11k stars 136 forks source link

Error: Invalid header: Does not start with Cr24 #165

Open thedoublejay opened 3 years ago

thedoublejay commented 3 years ago

Issue Details

Expected Behavior

Using the latest Electron 11.2.0 build, with electron-devtools-installer 3.1.1, the app should build successfully.

Actual Behavior

Using the latest Electron 11.2.0 build, with electron-devtools-installer 3.1.1, the build fails. There's an error Error: Invalid header: Does not start with Cr24 when running the build. Previously using Electron 11.1.1, this error is also displayed but the build still works. It breaks with Redux Dev Tools and React Dev Tools.

Screenshots

image

GiovaniBiagi commented 3 years ago

having the same issue, any workaround ?

BlackHole1 commented 3 years ago

@thedoublejay @GiovaniBiagi I submitted a fixed PR for this issue and I am now waiting for the merge: https://github.com/MarshallOfSound/electron-devtools-installer/pull/177

This method can be used to temporarily solve this problem:

yarn add electron-devtools-installer@git://github.com/BlackHole1/electron-devtools-installer#d2aef8692a6b3d797ec1aa9b1b24092e7461fb63 -D
BlackHole1 commented 3 years ago

But there are some errors in your picture. This PR may not have been fixed yet. Can you tell me which plugins are installed that caused the error?

eg: Permission 'notifications' is unknown or URL pattern is malformed.

Zyles commented 3 years ago

@thedoublejay @GiovaniBiagi I submitted a fixed PR for this issue and I am now waiting for the merge: #177

This method can be used to temporarily solve this problem:

yarn add electron-devtools-installer@git://github.com/BlackHole1/electron-devtools-installer#d2aef8692a6b3d797ec1aa9b1b24092e7461fb63 -D

Does not work for me. Still unable to compile. Uncaught (in promise) Error: Invalid header: Does not start with Cr24

  "dependencies": {
    "@keyv/sqlite": "^2.0.2",
    "@mapbox/node-pre-gyp": "^1.0.0",
    "axios": "^0.21.1",
    "axios-cache-adapter": "^2.7.0",
    "axios-retry-interceptor": "^1.1.0",
    "cachios": "^2.2.5",
    "core-js": "^3.9.0",
    "electron-oauth-helper": "^5.0.1",
    "electron-store": "^7.0.2",
    "keyv": "^4.0.3",
    "lodash": "^4.17.21",
    "material-design-icons-iconfont": "^5.0.1",
    "moment": "^2.29.1",
    "node-fetch": "^2.6.0",
    "numeral": "^2.0.6",
    "retry-axios": "^2.4.0",
    "sqlite": "^4.0.19",
    "sqlite3": "5.0.0",
    "uniqid": "^5.3.0",
    "validate.js": "^0.13.1",
    "vue": "^2.6.12",
    "vue-router": "^3.5.1",
    "vuetify": "^2.4.4",
    "vuex": "^3.6.2",
    "vuex-electron": "^1.0.3"
  },
  "devDependencies": {
    "@babel/cli": "^7.12.17",
    "@babel/core": "^7.12.17",
    "@babel/eslint-parser": "^7.12.17",
    "@babel/node": "^7.12.17",
    "@babel/plugin-proposal-optional-chaining": "^7.12.17",
    "@vue/cli-plugin-babel": "^3.12.1",
    "@vue/cli-plugin-eslint": "^3.12.1",
    "@vue/cli-service": "^3.12.1",
    "electron": "^11.3.0",
    "electron-builder": "^22.9.1",
    "electron-devtools-installer": "git://github.com/BlackHole1/electron-devtools-installer.git#d2aef8692a6b3d797ec1aa9b1b24092e7461fb63",
    "eslint": "^7.20.0",
    "eslint-config-standard": "^16.0.2",
    "eslint-plugin-html": "^6.1.1",
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-promise": "^4.3.1",
    "eslint-plugin-vue": "^7.6.0",
    "sass": "^1.32.8",
    "sass-loader": "^10.1.1",
    "vue-cli-plugin-electron-builder": "^1.4.6",
    "vue-cli-plugin-vuetify": "^0.6.3",
    "vue-template-compiler": "^2.6.12",
    "vuetify-loader": "^1.7.2"
  }
vedmant commented 8 months ago

Having the same issue, what's the fix?