Skip to content
This repository has been archived by the owner on Oct 13, 2018. It is now read-only.

Uncaught SyntaxError: Unexpected token } #45

Closed
blowsie opened this issue Jan 9, 2018 · 6 comments
Closed

Uncaught SyntaxError: Unexpected token } #45

blowsie opened this issue Jan 9, 2018 · 6 comments

Comments

@blowsie
Copy link

blowsie commented Jan 9, 2018

When using browser-sync-client.js?v=2.23.3:89 & Chrome latest.

I get the following error in the browser console.
Uncaught SyntaxError: Unexpected token }
I have used previous versions without issue.

Could this be an issue in the source code?

@blowsie
Copy link
Author

blowsie commented Jan 9, 2018

My last known working version is 2.18.13

@loginov-rocks
Copy link

@blowsie same here, returned to the 2.18.13 too, waiting for fix.

@HugoPoi
Copy link

HugoPoi commented Jan 17, 2018

I have test all version, the bug is introduce in 2.22.0 of browser-sync but the bug is in the client so only one commit beeing issued 8ea3496

@johanberonius
Copy link

I got this error too and figured out that browser-sync-client.js ends with the line //# sourceMappingURL=index.min.js.map but no newline after that.

When other plugins concatenate to that script the first line of the plugin script get corrupted.

For example, with browser-sync-ui the line becomes //# sourceMappingURL=index.min.js.map"use strict"; but the rest of the script till works.

But with browser-sync-spa the line becomes //# sourceMappingURL=index.min.js.map(function (bs) { and the rest of the script breaks.

@shakyShane
Copy link
Contributor

This is fixed in [email protected]

Also, this repo is no longer used for the client development - it's under browser-sync now :)

@blowsie
Copy link
Author

blowsie commented Jan 25, 2018

@shakyShane , Ok thanks I guess it makes sense to update the readme accordingly.

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

No branches or pull requests

5 participants