Skip to content
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

browser-sync crashes sometimes with #1983

Open
8 tasks
jamesRUS52 opened this issue Nov 16, 2022 · 0 comments
Open
8 tasks

browser-sync crashes sometimes with #1983

jamesRUS52 opened this issue Nov 16, 2022 · 0 comments

Comments

@jamesRUS52
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant