Akryum / Akryum/vue-cli-plugin-apollo

TypeError: Cannot read property 'transpileOptions' of undefined

未关闭
#406 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
477
派生
109
PR 合并指标
30 天内没有已合并 PR

描述

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"

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。