browser-sync crashes sometimes with
jamesRUS52 opened this issue · comments
Issue details
From time to time after update js files crashes with file not found exception
webpack compiled successfully
[Browsersync] Proxying: http://app.test
[Browsersync] Access URLs:
Local: http://localhost:3000
External: http://false:3000
UI: http://localhost:3001
UI External: http://localhost:3001
[Browsersync] Watching files...
[Browsersync] Reloading Browsers...
[Browsersync] Reloading Browsers...
[Browsersync] Reloading Browsers...
[Browsersync] Reloading Browsers...
[Browsersync] Reloading Browsers...
[Browsersync] Reloading Browsers...
[Browsersync] Reloading Browsers...
[Browsersync] Reloading Browsers...
[Browsersync] Reloading Browsers...
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, open '/iims/resources/js/app/main.js~'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/iims/resources/js/app/main.js~'
}
Node.js v18.1.0
Please specify which version of Browsersync, node and npm you're running
- Browsersync [ 2.27.10 ]
- browser-sync-webpack-plugin [2.3.0]
- Node [ 18.1.0 ]
- Npm [ ]
Affected platforms
- [ X ] linux
- windows
- OS X
- freebsd
- solaris
- [ X ] Docker
Browsersync use-case
- API
- Gulp
- Grunt
- CLI
If CLI, please paste the entire command below
npm run watch
as
"scripts": {
"dev": "npm run development",
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production"
},
for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync
Laravel MIX
mix.browserSync({
files: [
"resources/js/app/main.js",
"resources/css/.css",
"resources/sass/.scss",
"resources/views/**/*.blade.php",
],
open: false,
notify: false
});
What is the file /iims/resources/js/app/main.js~ (with tilda at end) ? Temporary file of browser-sync or not?
and why browser-sync craches with it (this file not listed in file list mask)