-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"Error: Watching remote files is not supported" on windows with latest #2190
Comments
Looks you try to watch remove files
Sorry, i can't reproduce nothing, please create minimum reproducible test repo or provide your configuration |
@docteurzoidberg still no configuration |
@evilebottnawi i haven't any, it's the default vue-cli project ! |
@evilebottnawi > I found the bug; it's because of the pwd of my project: "c:\dev\test-broken" |
need investigate, maybe wrong regexp |
Thanks for more information which can help us |
https://i.imgur.com/etToqUI.png not working in c:\dev\test-broken Same project, working in any other folder with no "dev" parent folder |
@docteurzoidberg can you provide you project, or minimum reproducible test repo, it can help fix problem fast, thanks |
sorry, i don't have git to publish the repo on windows, i'm at camping right now. i will can do it next week. The project is done with vue-cli ("npm install vue-cli -g"), then "vue init test-broken" |
@docteurzoidberg no additional configurations? |
absolutly not, i was testing, all default settings from sample project |
Thanks, we will look on this in near future |
seems to depend entierly on path |
I think this issue about webpack-dev-server |
webpack-dev-server/lib/Server.js: if (isAbsoluteUrl(String(contentBase)) || typeof contentBase === 'number') {
throw new Error('Watching remote files is not supported.');
} Here the contentBase is default value( devServer: {
contentBase: './public'
} This bug may reproduce in webpack-dev-server@3.8.0 |
I think it is regression, we need fix it, PR, welcome, it is easy |
My reply in the Vue CLI issue thread:
|
@sodatea thanks for investigate, what is the |
@evilebottnawi In Vue CLI it's set to the user's |
@sodatea i know, just want to see you |
@evilebottnawi 😂I've never encountered such issues. I was just investigating based on the information @docteurzoidberg provided. |
Came across the same issue, when running fresh new project from |
@mnlj Yes, we had such a problem for a long time, before we check on absolute url only when you use contentBase as string, in webpack-dev-server@3.8.0 we start to check when you use array, so problem appears |
it definitely has since i got similar result to my error message on stackoverflow and i saw people having problem on older versions in webpack 3 |
Anyway PR welcome 👍 |
I found VS-Code debug launcher in windows may start node.exe with cwd like 'c:\work', and cause this issue. require('child_process').execSync('npm run serve', {
cwd: 'c:\\work\\project\\',
stdio: ['inherit', 'inherit', 'inherit']
}) |
Should be solved, just update deps |
Operating System: Windows 10
Node Version: 10.16.1
NPM Version: 6.10.3
webpack Version: 4+
webpack-dev-server Version: 3.8.0
Browser: none
This is a bug
This is a modification request
Expected Behavior
'npm run serve' should work like always
Actual Behavior
'npm run serve' give me an "Error: Watching remote files is not supported.".
-> I cannot build / run anything with the dev-server
For Bugs; How can we reproduce the behavior?
Running 'npm run serve' on any vue-cli boilerplate webapp
The text was updated successfully, but these errors were encountered: