question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vue-cli may open browser twice auto if I set 'devServer.open' : true

See original GitHub issue

Version

3.8.0

Environment info

System:
    OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
    CPU: (4) x64 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
  Binaries:
    Node: 8.10.0 - /usr/bin/node
    Yarn: 1.15.2 - ~/.yarn/bin/yarn
    npm: 6.8.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 71.0.3578.98
    Firefox: 67.0
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0 
    @vue/babel-plugin-transform-vue-jsx:  1.0.0 
    @vue/babel-preset-app:  3.8.0 
    @vue/babel-preset-jsx:  1.0.0 
    @vue/babel-sugar-functional-vue:  1.0.0 
    @vue/babel-sugar-inject-h:  1.0.0 
    @vue/babel-sugar-v-model:  1.0.0 
    @vue/babel-sugar-v-on:  1.0.0 
    @vue/cli-overlay:  3.8.0 
    @vue/cli-plugin-babel: ^3.5.0 => 3.8.0 
    @vue/cli-plugin-typescript: ^3.5.0 => 3.8.1 
    @vue/cli-service: ^3.5.0 => 3.8.0 
    @vue/cli-shared-utils:  3.8.0 
    @vue/component-compiler-utils:  2.6.0 
    @vue/web-component-wrapper:  1.2.0 
    vue: ^2.6.6 => 2.6.10 
    vue-class-component: ^6.0.0 => 6.3.2 
    vue-cli-plugin-quasar: ^0.17.1 => 0.17.1 
    vue-datetime:  1.0.0-beta.10 
    vue-easytable: ^1.7.2 => 1.7.2 
    vue-hot-reload-api:  2.3.3 
    vue-i18n: ^7.8.1 => 7.8.1 
    vue-loader: ^15.6.4 => 15.7.0 
    vue-property-decorator: ^7.0.0 => 7.3.0 
    vue-router: ^3.0.1 => 3.0.6 
    vue-style-loader: ^4.1.2 => 4.1.2 
    vue-template-compiler: ^2.5.21 => 2.6.10 
    vue-template-es2015-compiler:  1.9.1 
    vuex: ^3.0.1 => 3.1.1 
  npmGlobalPackages:
    @vue/cli: 3.3.0

Steps to reproduce

set ‘devServer.open’ to true in vue.config.js and run ‘vue-cli-service serve’

What is expected?

fix this bug

What is actually happening?

when I set ‘devServer.open’: true in vue.config.js, vue-cli may open browser twice auto

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sodateacommented, Jun 13, 2019

Fixed in 3.8.3

2reactions
LinusBorgcommented, Jun 6, 2019

I’m pretty sure there was another issue about this but it seems I linked the wrong one.

I’ll reopen now and check later

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Reference | Vue CLI
When devServer.proxy is set to a string, only XHR requests will be proxied. If you want to test an API URL, don't open...
Read more >
Webpack launch browser automatically - Stack Overflow
I don't want to launch a webpack-dev-server , so I used open-browser-webpack-plugin and could get it to work. (I use real express server,...
Read more >
Vue.js Single Page Application with ASP.NET MVC 5 - kleypot
In this post I will share how I set up an ASP.NET MVC 5 project as a SPA using Vue.js. I will walk...
Read more >
How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
@vue/cli-service | Yarn - Package Manager
... avoid deprecation warnings (@backrunner, @sodatea); [beffe8a] fix: allow disabling progress plugin via devServer.client.progress. @vue/cli-ui.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found