-
Notifications
You must be signed in to change notification settings - Fork 757
Closed
Description
Issue details
I'm using Yeoman with FountainJS to generate a new project.
As soon as it finish assembling it, I simply run the classic npm run serve. It finishes without errors but then I get this error in chrome browser console:
Uncaught SyntaxError: Unexpected token }
The error is reported to be generated from browser-sync-client.js?v=2.23.5:89.
My doubt is if the issue is actually in browserSync or in something else built by fountainJS package.
I tried building an angularJS (simple landing page) and angular (todo mcv) project but the error persist with both cases even if they're different framework/languages/source.
Steps to reproduce/test case
- Install Yeoman
- Add fountainJS
- Generate a project (keep it simple, I didn't continuous integration support for example)
- run
npm run serve - Open the browser to the newly running webserver
- Open the console
Please specify which version of Browsersync, node and npm you're running
From package,json:
- "browser-sync": "^2.18.8",
- "browser-sync-spa": "^1.0.3",
Others:
- Node v9.3.0
- Npm 5.6.0
Affected platforms
- windows
Browsersync use-case
- API
- GULP
for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync
From gulpfile.js:
const browserSync = require('browser-sync');
// [...]
function reloadBrowserSync(cb) {
browserSync.reload();
cb();
}
function watch(done) {
gulp.watch(conf.path.tmp('index.html'), reloadBrowserSync);
done();
}
Metadata
Metadata
Assignees
Labels
No labels