adambullmer / vue-cli-plugin-browser-extension

Browser extension development plugin for vue-cli 3.0
GNU Lesser General Public License v3.0
427 stars 76 forks source link

Error Yarn run serve #46

Closed tuantmtb closed 5 years ago

tuantmtb commented 5 years ago

After run: $ vue create . $ vue add browser-extension

$ yarn run serve Error:

> vue-cli-service build --mode development --watch
⠇  Bui 98% after emitting SizeLimitsPlugin

ERROR  Failed to compile with 1 errors                                                                                                                                                        error  Unexpected string in JSON at position 723

p/s: package.json

{
  "name": "extension_init",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service build --mode development --watch",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "test:unit": "vue-cli-service test:unit"
  },
  "dependencies": {
    "core-js": "^2.6.5",
    "register-service-worker": "^1.6.2",
    "vue": "^2.6.10",
    "vue-router": "^3.0.3",
    "vuex": "^3.0.1",
    "webextension-polyfill": "^0.3.0"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "^3.9.0",
    "@vue/cli-plugin-eslint": "^3.9.0",
    "@vue/cli-plugin-pwa": "^3.9.0",
    "@vue/cli-plugin-unit-mocha": "^3.9.0",
    "@vue/cli-service": "^3.9.0",
    "@vue/test-utils": "1.0.0-beta.29",
    "babel-eslint": "^10.0.1",
    "chai": "^4.1.2",
    "eslint": "^5.16.0",
    "eslint-plugin-vue": "^5.0.0",
    "imports-loader": "^0.8.0",
    "vue-cli-plugin-browser-extension": "^0.15.1",
    "vue-template-compiler": "^2.6.10"
  }
}

Could you fix this? Thank you.

adambullmer commented 5 years ago

This is a known error in the scaffolding of the manifest.json file. You are probably just missing a comma in your manifest file. Any fix I can make for this issue will only affect new project scaffolding.

Otherwise this is fixed in 0.17.1 if you're able to rerun vue invoke browser-extension