Closed pronebird closed 6 years ago
This was useful to me. lib vs dist caused an error on my first npm start, but changing
import browserSyncConnectUtils from 'browser-sync/lib/connect-utils';
to
import browserSyncConnectUtils from 'browser-sync/dist/connect-utils';
in scripts/serve.js instantly fixed the problem!
Awesome! @phoenixrip happy to accept the PR if you have a fix. Otherwise I'll get to this ASAP.
Hi, running npm install I got installed the "browser-sync": "^2.9.3" and browserSyncConnectUtils was throwing an error so I changed the serve file back to lib and it works. dist-> lib. Not sure if somebody else have had the same problem.
Cheers.
Looks like we may have forgotten to bump the browsersync version number in https://github.com/jschr/electron-react-redux-boilerplate/pull/44 to ^2.23.6
.
@vicesalles If you could confirm that also fixes it that would be appreciated!
if I update the version of browsersync to 2.23.6 the original code works fine. But with the default 2.9.3 version it crashes.
Great, thanks for confirming. Fixed in https://github.com/jschr/electron-react-redux-boilerplate/pull/45
It seems that
browser-sync@2.21
was the last version shipped withlib
folder and we do importbrowser-sync/lib/connect-utils
from it. I think changinglib
->dist
should do the trick.Compare