Uncaught SyntaxError: Unexpected token ;
See original GitHub issueWhen I include this library from a webpack project,
import jsPDF from 'jsPDF';
Which imports jspdf.min.js
I get this error at the following line:
var o = t.parseBackgroundSize(e, n.image, r),
s = t.parseBackgroundPosition(e, n.image, r, o),
a = t.parseBackgroundRepeat(r);
I don’t see the error here. Can anyone help me figure out why it’s happening?
btw, I cannot use the jspdf.debug.js
either because there are a ton of errors in it.
Issue Analytics
- State:
- Created 8 years ago
- Comments:30 (9 by maintainers)
Top Results From Across the Web
Uncaught SyntaxError: Unexpected token : - Stack Overflow
An "unexpected token" is likely some illegal character code. Such a code is likely not to show up when you print to console....
Read more >SyntaxError: Unexpected token - JavaScript - MDN Web Docs
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
Read more >SyntaxError: Unexpected token in JavaScript | bobbyhadz
The "Uncaught SyntaxError: Unexpected token" occurs for multiple reasons: · The error is also caused if you're making an HTTP request to a...
Read more >Uncaught SyntaxError: Unexpected token < - JavaScript - iDiallo
All it means is that the interpreter is expecting JavaScript or JSON and you are feeding it HTML/XML. If you don't think you...
Read more >How to Fix Uncaught SyntaxError: Unexpected token '{'
The JavaScript exceptions " unexpected token " occur when a specific language construct was expected, but something else was provided.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1 Problem still occurs on latest release.
I still can’t use jsPDF with webpack… :\