Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TypeError: Cannot read property 'options' of undefined index.js:11:30 #5

Open
poctob opened this issue Jul 2, 2020 · 0 comments
Open

Comments

@poctob
Copy link

poctob commented Jul 2, 2020

Fresh install using vue cli, project fails to build right after executing vue add material
node v12.16.1
npm 6.13.4
@vue/cli 4.4.6

package.json

{
  "name": "chronos",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "core-js": "^3.6.5",
    "material-components-web": "^0.35.0",
    "vue": "^2.6.11",
    "vue-mdc-adapter": "^0.15.0",
    "vue-router": "^3.2.0",
    "vuex": "^3.4.0"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.4.0",
    "@vue/cli-plugin-eslint": "~4.4.0",
    "@vue/cli-plugin-router": "~4.4.0",
    "@vue/cli-plugin-vuex": "~4.4.0",
    "@vue/cli-service": "~4.4.0",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^6.2.2",
    "node-sass": "^4.9.0",
    "sass-loader": "^7.0.1",
    "vue-cli-plugin-material": "~0.2.3",
    "vue-template-compiler": "^2.6.11"
  }
}

error stack

TypeError: Cannot read property 'options' of undefined
    at C:\Projects\ui\chronos\node_modules\vue-cli-plugin-material\index.js:11:30
    at C:\Projects\ui\chronos\node_modules\@vue\cli-service\lib\Service.js:251:21
    at Array.forEach (<anonymous>)
    at Service.resolveWebpackConfig (C:\Projects\ui\chronos\node_modules\@vue\cli-service\lib\Service.js:248:30)
    at PluginAPI.resolveWebpackConfig (C:\Projects\ui\chronos\node_modules\@vue\cli-service\lib\PluginAPI.js:132:25)
    at serve (C:\Projects\ui\chronos\node_modules\@vue\cli-service\lib\commands\serve.js:75:31)
    at Service.run (C:\Projects\ui\chronos\node_modules\@vue\cli-service\lib\Service.js:230:12)
    at Object.<anonymous> (C:\Projects\ui\chronos\node_modules\@vue\cli-service\bin\vue-cli-service.js:36:9)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant