-
Notifications
You must be signed in to change notification settings - Fork 754
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
index.min.js is missing from the latest version #1549
Comments
Same problem here... Reload/Stream functions suddenly stopped work. |
Same issue here, after updating to v2.24.0 |
Same issue. Error log as follows:
|
I began to see this error message after upgrading npm to v6.0.0; even with browsersync v2.18.15 |
But @Carlosdvp , if you check the Git history it was removed in one of the last commits: https://github.com/BrowserSync/browser-sync/tree/master/client/dist |
You are right @vinceshere I was looking through the node_modules for previous projects that I had been using browsersync with, and they were working fine because the contents for that folder were intact. The cause as far as I can tell is that the contents for the directory you mention are now gone. To correct my previous comment: It has nothing to do with npm v6.0.0, tested old installs of browser-sync with npm v6 and they work fine browser-sync/client/dist contents are missing in new installs of browser-sync, that is the cause for this error message. I just copied the missing files into the empty folder and now it's working fine |
Please change this issue's title to something like: "index.min.js is missing from the latest version" Not trying to be a grammar nasty but at least it would be easier to understand if it were "does not" instead of "don't". |
OMG =((( |
HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP!!!))))) |
@dhffdh pin your version to the old one |
@huochunpeng THANK YOU =) |
Thanks all for the fast feedback :) I had removed the compiled assets from the repo, with the aim of rebuilding them only when publishing - but I used an incorrect NPM lifecycle hook - oops! It's fixed now though browser-sync@2.24.1 ❤️ |
@shakyShane I like the removal in general. FYI, but it could create some trouble for some users (like contributors) who directly installs the package from git repo, if they use yarn or pnpm. |
@shakyShane Hi, I think this issue might be revived again from the latest release v2.27.10. I ras running v2.27.9 in my projects and started to get this error recently. |
@shakyShane Same for me. I started to see this problem (missing index.min.js) when upgrading to v2.27.10. |
Same here in my new jHipster project with "browser-sync": "2.27.9", |
I also experienced the same issue when using JHipster to create a new standalone app using |
Hello guys,
|
In jhipster, instead of browser-sync-client@2.27.10 change it to browser-sync-client@2.27.9 by
|
I ran into this issue testing out a browser sync update. Since this issue was closed back 2018 and fixed does it make sense to reopen this thread or make a new one since a recent update in client caused the same issue? Currently my workaround is to keep my pinned package.lock file for browser sync to the older version. |
Same issue still at 2.26.13 |
+1
→ ●● svg $ pnpm start [17:28:57]
> svg@1.0.0 start /Users/frankie/Web/ifanr/wechat-svg-post/svg
> gulp start
[17:29:12] Using gulpfile ~/Web/ifanr/wechat-svg-post/svg/gulpfile.js
[17:29:12] Starting 'start'...
[Browsersync] Access URLs:
---------------------------------
Local: http://localhost:3000
External: http://172.16.3.83:3000
---------------------------------
[Browsersync] Serving files from: dist-dev/pages
Error: Cannot find module 'browser-sync-client/dist/index.min.js'
Require stack:
- /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/browser-sync@2.27.7/node_modules/browser-sync/dist/snippet.js
- /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/browser-sync@2.27.7/node_modules/browser-sync/dist/hooks.js
- /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/browser-sync@2.27.7/node_modules/browser-sync/dist/browser-sync.js
- /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/browser-sync@2.27.7/node_modules/browser-sync/dist/index.js
- /Users/frankie/Web/ifanr/wechat-svg-post/svg/gulpfile.js
- /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/gulp-cli@2.3.0/node_modules/gulp-cli/lib/shared/require-or-import.js
- /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/gulp-cli@2.3.0/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js
- /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/gulp-cli@2.3.0/node_modules/gulp-cli/index.js
- /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/gulp@4.0.2/node_modules/gulp/bin/gulp.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
at Function.resolve (node:internal/modules/cjs/helpers:114:19)
at /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/browser-sync@2.27.7/node_modules/browser-sync/dist/snippet.js:87:50
at /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/browser-sync-client@2.29.1/node_modules/browser-sync-client/index.js:59:39
at Array.reduce (<anonymous>)
at processItems (/Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/browser-sync-client@2.29.1/node_modules/browser-sync-client/index.js:54:10)
at /Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/browser-sync-client@2.29.1/node_modules/browser-sync-client/index.js:89:22
at call (/Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/connect@3.6.6/node_modules/connect/index.js:239:7)
at next (/Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/connect@3.6.6/node_modules/connect/index.js:183:5)
at next (/Users/frankie/Web/ifanr/wechat-svg-post/svg/node_modules/.pnpm/connect@3.6.6/node_modules/connect/index.js:161:14) However, it seems to be working fine with |
Issue details
Error: ENOENT: no such file or directory, ........ node_modules\browser-sync\client\dist\index.min.js
The text was updated successfully, but these errors were encountered: