Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Building with --dest fails on v5 alpha #6312

Closed
nklayman opened this issue Feb 23, 2021 · 0 comments · Fixed by #6314
Closed

Building with --dest fails on v5 alpha #6312

nklayman opened this issue Feb 23, 2021 · 0 comments · Fixed by #6314
Labels

Comments

@nklayman
Copy link

Version

5.0.0-alpha.5

Reproduction link

https://github.com/nklayman/electron-vue-cli5
(Literally just a fresh vue create)

Environment info

Environment Info:

  System:
    OS: Linux 5.8 Ubuntu 20.10 (Groovy Gorilla)
    CPU: (16) x64 AMD Ryzen 7 1700 Eight-Core Processor
  Binaries:
    Node: 14.4.0 - /tmp/fnm-shell-2196158/bin/node
    Yarn: 1.22.10 - /tmp/fnm-shell-2196158/bin/yarn
    npm: 7.5.3 - /tmp/fnm-shell-2196158/bin/npm
  Browsers:
    Chrome: 88.0.4324.182
    Firefox: 85.0.1
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.2.1 
    @vue/babel-helper-vue-transform-on:  1.0.2 
    @vue/babel-plugin-jsx:  1.0.3 
    @vue/babel-plugin-transform-vue-jsx:  1.2.1 
    @vue/babel-preset-app:  5.0.0-alpha.5 
    @vue/babel-preset-jsx:  1.2.4 
    @vue/babel-sugar-composition-api-inject-h:  1.2.1 
    @vue/babel-sugar-composition-api-render-instance:  1.2.4 
    @vue/babel-sugar-functional-vue:  1.2.2 
    @vue/babel-sugar-inject-h:  1.2.2 
    @vue/babel-sugar-v-model:  1.2.3 
    @vue/babel-sugar-v-on:  1.2.3 
    @vue/cli-overlay:  5.0.0-alpha.5 
    @vue/cli-plugin-babel: ~5.0.0-alpha.5 => 5.0.0-alpha.5 
    @vue/cli-plugin-eslint: ~5.0.0-alpha.5 => 5.0.0-alpha.5 
    @vue/cli-plugin-router:  5.0.0-alpha.5 
    @vue/cli-plugin-vuex:  5.0.0-alpha.5 
    @vue/cli-service: ~5.0.0-alpha.5 => 5.0.0-alpha.5 
    @vue/cli-shared-utils:  5.0.0-alpha.5 
    @vue/compiler-core:  3.0.5 
    @vue/compiler-dom:  3.0.5 
    @vue/compiler-sfc: ^3.0.4 => 3.0.5 
    @vue/compiler-ssr:  3.0.5 
    @vue/component-compiler-utils:  3.2.0 
    @vue/preload-webpack-plugin:  1.1.2 
    @vue/reactivity:  3.0.5 
    @vue/runtime-core:  3.0.5 
    @vue/runtime-dom:  3.0.5 
    @vue/shared:  3.0.5 
    @vue/web-component-wrapper:  1.3.0 
    eslint-plugin-vue: ^7.2.0 => 7.6.0 
    vue: ^3.0.4 => 3.0.5 
    vue-cli-plugin-electron-builder: ~2.0.0-rc.6 => 2.0.0-rc.6 
    vue-eslint-parser:  7.5.0 
    vue-hot-reload-api:  2.3.4 
    vue-loader:  16.1.2 (15.9.6)
    vue-style-loader:  4.1.2 
    vue-template-es2015-compiler:  1.9.1 
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

Create blank project with default preset, then run npm run build --dest other_dist.

What is expected?

Build succeeds and outputs to specified folder

What is actually happening?

Build fails with the following:

 ERROR  TypeError: Cannot set property 'to' of undefined
TypeError: Cannot set property 'to' of undefined
    at /home/noah/Documents/html/electron-vue-cli5/node_modules/@vue/cli-service/lib/commands/build/resolveAppConfig.js:15:27
    at Object.tap (/home/noah/Documents/html/electron-vue-cli5/node_modules/webpack-chain/src/Plugin.js:30:24)
    at module.exports (/home/noah/Documents/html/electron-vue-cli5/node_modules/@vue/cli-service/lib/commands/build/resolveAppConfig.js:14:27)
    at build (/home/noah/Documents/html/electron-vue-cli5/node_modules/@vue/cli-service/lib/commands/build/index.js:147:50)
    at /home/noah/Documents/html/electron-vue-cli5/node_modules/@vue/cli-service/lib/commands/build/index.js:89:13
    at Service.run (/home/noah/Documents/html/electron-vue-cli5/node_modules/@vue/cli-service/lib/Service.js:245:12)
    at Object.<anonymous> (/home/noah/Documents/html/electron-vue-cli5/node_modules/@vue/cli-service/bin/vue-cli-service.js:36:9)
    at Module._compile (internal/modules/cjs/loader.js:1200:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
    at Module.load (internal/modules/cjs/loader.js:1049:32)
error Command failed with exit code 1.

Seems like the error comes from here, probably due to a change related to webpack 5.

@fangbinwei fangbinwei added the bug label Feb 24, 2021
sodatea added a commit to sodatea/vue-cli that referenced this issue Feb 24, 2021
sodatea added a commit that referenced this issue Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants