Skip to content
← Back to Community
VueJS launch
Profile icon
NEKRA

Have you ever launched the normal VueJS application on Repl? I mean the one maid with vue create myapp with node_modules and etc.
I've seen here a template "Create React App" which is working, I've tried even to replace it with VueJS project and everything works, BUT: in preview I see the "Invalid Host Header".
I've tried also to use clean NodeJS project with VueJS installation and project creation. But still has the same result. What's wrong?

Voters
Profile icon
Jagsubjags
Profile icon
Tahigh
Profile icon
Patrity
Profile icon
NEKRA
Comments
hotnewtop
Profile icon
NEKRA

Difference in these two templates is that first is more "raw", I just tried to find a way launch vue correctly, added readme and etc., an in second template vue basic project is created

Profile icon
NEKRA

@Patrity, I've already forgot about this question here. I've got the same error while tried to launch vue dev server on remote machine and trying to access it via domain.
You can solve this problem this way

module.exports = { devServer: { disableHostCheck: true } };

or this way

module.exports = { devServer: { public: 'subdomain.domain.ext:port' } };

by placing this code at vue.config.js.
As a result use these templates to make your project:
https://repl.it/@NEKRA/VueJS
https://repl.it/@NEKRA/VueJS-project-only

Profile icon
Patrity

Having this same issue right now. A fix would be great...