question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error parsing Base64-encoded PNG - expected ")" got ";"

See original GitHub issue
Potentially unhandled rejection [24] ParseError: C:/Users/xxx/Documents/git/Neue Webseite/style/style.styl:631:42

–> style.styl:631:42 char 42 is the ; after image/png.

  nav #tel {
    text-align: right;
    /*  margin-left: 45%;*/
    font-size: 1em;
    line-height: 1em;

    font-weight: 400;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABQElEQVRIS7WV/zEFQRCEvxcBIiCDRwSIABE8IkAGZEAEhEAEngyEIANEQH3cqrG1e7/cTdX9s3XXPd2z07dg5lrMjE8kOAaWBcJH4GVsI5HgswJyC1xMQfAObBSA7H5vCoI1sF8B2gJsYHBFi+6BVQXhBHgYjA5/hnwK3E09h6hgE3irEBwCWji48j3QhqMM5QzQvlGVExwATwHpGrgahdx8VNrkeJv+dUXlKBHkKrRHm0ZVLYtugPOAeAl4Nrjawk57YjYZF8ZGXp5razGv2gi8tq9ZfGiXatJWx+X0TBKf57SYXXG923QXM0pSSUzf2uZLZrwUh5xbsNN0U4rytpl8N9+lIAFol/sQB9818EEECcwrrO/bXeip+b4KcjyD0acW7x+AqntbVGvY+ThslXkhkrLfv+BYBT0c+nlldoIv94wvGRkmCCUAAAAASUVORK5CYII=);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 24px;
    padding-bottom: 4px;
  }

expected ")", got ";"

    at Parser.error (C:\Users\xxx\Documents\git\Neue Webseite\node_modules\gulp-stylus\node_modules\stylus\lib\parser.js:257:11)
    at Parser.expect (C:\Users\xxx\Documents\git\Neue Webseite\node_modules\gulp-stylus\node_modules\stylus\lib\parser.js:285:12)
    at Parser.url (C:\Users\xxx\Documents\git\Neue Webseite\node_modules\gulp-stylus\node_modules\stylus\lib\parser.js:1679:10)
    at Parser.functionCall (C:\Users\xxx\Documents\git\Neue Webseite\node_modules\gulp-stylus\node_modules\stylus\lib\parser.js:1690:52)
    at Parser.primary (C:\Users\xxx\Documents\git\Neue Webseite\node_modules\gulp-stylus\node_modules\stylus\lib\parser.js:2157:18)
    at Parser.member (C:\Users\xxx\Documents\git\Neue Webseite\node_modules\gulp-stylus\node_modules\stylus\lib\parser.js:2049:21)
    at Parser.subscript (C:\Users\xxx\Documents\git\Neue Webseite\node_modules\gulp-stylus\node_modules\stylus\lib\parser.js:2027:21)
    at Parser.unary (C:\Users\xxx\Documents\git\Neue Webseite\node_modules\gulp-stylus\node_modules\stylus\lib\parser.js:2018:17)
    at Parser.defined (C:\Users\xxx\Documents\git\Neue Webseite\node_modules\gulp-stylus\node_modules\stylus\lib\parser.js:1990:21)
    at Parser.multiplicative (C:\Users\xxx\Documents\git\Neue Webseite\node_modules\gulp-stylus\node_modules\stylus\lib\parser.js:1964:21)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
nullablemindcommented, Aug 3, 2015

Wrap the value of the url in quotation marks.

  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABQElEQVRIS7WV/zEFQRCEvxcBIiCDRwSIABE8IkAGZEAEhEAEngyEIANEQH3cqrG1e7/cTdX9s3XXPd2z07dg5lrMjE8kOAaWBcJH4GVsI5HgswJyC1xMQfAObBSA7H5vCoI1sF8B2gJsYHBFi+6BVQXhBHgYjA5/hnwK3E09h6hgE3irEBwCWji48j3QhqMM5QzQvlGVExwATwHpGrgahdx8VNrkeJv+dUXlKBHkKrRHm0ZVLYtugPOAeAl4Nrjawk57YjYZF8ZGXp5razGv2gi8tq9ZfGiXatJWx+X0TBKf57SYXXG923QXM0pSSUzf2uZLZrwUh5xbsNN0U4rytpl8N9+lIAFol/sQB9818EEECcwrrO/bXeip+b4KcjyD0acW7x+AqntbVGvY+ThslXkhkrLfv+BYBT0c+nlldoIv94wvGRkmCCUAAAAASUVORK5CYII=");
1reaction
carstenhagcommented, Aug 3, 2015

@Panya Any chance we can get a clearer error on this? Seems unclear to me 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to save a PNG image server-side, from a base64 data URI
In short, what I'm currently doing is to generate a file on the client side using Canvas2Image, then retrieve the base64-encoded data and...
Read more >
Base64 - MDN Web Docs Glossary: Definitions of ... - Mozilla
Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a ......
Read more >
Solved: Error on Render tool - Designer - Alteryx Community
Solved: Hello, I'm trying to create my first large push reporting using the alteryx reporting tools out to a .pdf file and then...
Read more >
Convert Base64 encoded string to a image and inser...
I got a base64 encoded string output while fetching data from canvas but when i decode and insert into attachment table , it...
Read more >
base64_encode - Manual - PHP
Base64-encoded data takes about 33% more space than the original data. ... the second caused the rare mentioned errors when encoding failed for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found