Roots Discourse

Sage 9 - js on save doesn't update

webpack
sage9

#1

Hi,

whenever I save a JS file of my theme after running yarn start, the app compiles properly but the console throws a few errors and JS is not injected.

[HMR] Update check failed: Error: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL in process-update.js:136

Uncaught (in promise) DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL
    at http://localhost:3000/ottobock-git/wp-content/themes/mytheme/dist/scripts/main.js:30:22

I’ve tried all the suggestions in the forums, without any luck.

Here’s my config.json

{
“headers”: { “Access-Control-Allow-Origin”: “" },
“entry”: {
“main”: [
“./scripts/main.js”,
“./styles/main.scss”
],
“customizer”: [
“./scripts/customizer.js”
]
},
“publicPath”: “wp-content/themes/mytheme/”,
“devUrl”: “http://localhost/project-git”,
“proxyUrl”: “http://localhost:3000”,
“cacheBusting”: “[name]_[hash:8]”,
“watch”: [
"app/**/
.php”,
“config//*.php",
"resources/views/
/*.php”
]
}

am i missing out something really obvious?