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.

host and port setting for open-in-editor for vue devtools

See original GitHub issue

Clear and concise description of the problem

Open in editor only works when browsing a vue app on the same host as the dev server is running. When the app is loaded into a domain, like mylocaldomain.com or mydomain.com.localhost, clicking open-in-editor in vue devtools will fetch

Suggested solution

server: {
    devtools: {
        host: 'localhost',
        port: 3005,
        protocol: 'https'
    }
}

Alternative

Workaround is to add a URL Rewrite rule. Example for web.config:

<rule name="Rewrite for vue devtools" stopProcessing="true">
    <match url="^__open-in-editor(.*)$" ignoreCase="true" />
    <action type="Redirect" url="https://localhost:3005/__open-in-editor{R:1}" />
</rule>

Additional context

No response

Validations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Akryumcommented, May 17, 2022

I’m in favor of having a better dx by automating this 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Open component in editor | Vue Devtools
In your Vue project, install the launch-editor-middleware package and modify your webpack configuration: Import the package:.
Read more >
Vue Devtools: The Simplest Way to Debug Your Vue.js ...
There are three ways to install the Vue Devtools: ... Then start your development server like you are used to, without killing the...
Read more >
How To Debug Components, State, and Events with Vue.js ...
Now open your browser and open the Vue.js Devtools. In the left pane, highlight the <App> component. On the right column, the setup...
Read more >
Vue.js DevTools Tutorial - Flavio Copes
As mentioned, the Vue DevTools can be activated by opening the Developer Tools in the browser and moving to the Vue panel. Another...
Read more >
vue-devtools always disabled with nuxt.js - Stack Overflow
PORT || 5000, host: '0.0.0.0' },. Adding this to nuxt.config.js solved the problem.
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