Akryum / Akryum/vue-cli-plugin-apollo
TypeError: Cannot read property 'transpileOptions' of undefined
- Ngôn ngữ chính
- JavaScript
- Star
- 477
- Fork
- 109
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Getting the below error during npm run build, with dependency on vue-cli-plugin-apollo 0.21.3. I get this failure on my Windows 10 machine, and also building it inside of the maven:3.6.3-amazoncorretto-11 docker image. But what's very puzzling is that one teammate is able to build this project successfully on his Windows 10 machine, and another teammate on his Mac. So it's inconsistent, likely with some kind of environmental issue. But since I encounter this in the maven docker image it obviously can be reproduced on linux.
Here is my stacktrace. (The ........... just represents the root path of my git project in Windows.)
> vue-cli-service build --target lib --name nui-horizon-platform ./src/index.js
✔ Building for production as library (commonjs,umd,umd-min)...
ERROR TypeError: Cannot read property 'transpileOptions' of undefined
TypeError: Cannot read property 'transpileOptions' of undefined
at ..........................\node_modules\vue-cli-plugin-apollo\index.js:90:44
at Object.tap (..........................\node_modules\webpack-chain\src\Use.js:14:20)
at ..........................\node_modules\vue-cli-plugin-apollo\index.js:89:8
at ..........................\node_modules\@vue\cli-service\lib\Service.js:236:40
at Array.forEach ()
at Service.resolveChainableWebpackConfig (..........................\node_modules\@vue\cli-service\lib\Service.js:236:26)
at PluginAPI.resolveChainableWebpackConfig (..........................\node_modules\@vue\cli-service\lib\PluginAPI.js:145:25)
at genConfig (..........................\node_modules\@vue\cli-service\lib\commands\build\resolveLibConfig.js:32:24)
at module.exports (..........................\node_modules\@vue\cli-service\lib\commands\build\resolveLibConfig.js:136:15)
at build (..........................\node_modules\@vue\cli-service\lib\commands\build\index.js:140:50)
The devDependencies from my package.json are as follows:
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
"@vue/cli-plugin-eslint": "^4.1.2",
"@vue/cli-plugin-pwa": "^4.1.0",
"@vue/cli-plugin-router": "^4.1.0",
"@vue/cli-plugin-unit-jest": "^4.1.0",
"@vue/cli-plugin-vuex": "^4.1.0",
"@vue/cli-service": "^4.1.0",
"@vue/eslint-config-standard": "^4.0.0",
"@vue/test-utils": "1.0.0-beta.29",
"babel-eslint": "^10.0.3",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"graphql-tag": "^2.9.0",
"jest-fetch-mock": "^3.0.3",
"jest-mock-axios": "^4.2.1",
"node-sass": "^4.12.0",
"peer-deps-externals-webpack-plugin": "^1.0.4",
"sass-loader": "^8.0.0",
"vue-cli-plugin-apollo": "^0.21.3",
"vue-template-compiler": "^2.6.10",
"webpack-bundle-analyzer": "^3.8.0",
"webpack-node-externals": "^1.7.2"
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.