bndw / wifi-card

📶 Print a QR code for connecting to your WiFi (wificard.io)
https://wificard.io
MIT License
6.62k stars 465 forks source link

Rotate doesn't seem to work #161

Closed tplive closed 3 years ago

tplive commented 3 years ago

I click rotate on the card, it returns a blank screen. Tested in Firefox and Chrome.

Returns an error message in the JS console:

Error: Minified React error #62; visit https://reactjs.org/docs/error-decoder.html?invariant=62&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    React 8
    unstable_runWithPriority scheduler.production.min.js:19
    React 5
react-dom.production.min.js:209:194

Uncaught Error: Minified React error #62; visit https://reactjs.org/docs/error-decoder.html?invariant=62&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    React 8
    unstable_runWithPriority scheduler.production.min.js:19
    React 5
react-dom.production.min.js:74:343

In development, another error message is returned:

Error: The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.
    in svg (created by QRCodeSVG)
    in QRCodeSVG (created by QRCode)
    in QRCode (at Card.js:96)
    in div (at Card.js:92)
    in fieldset (at Card.js:84)
    in div (at Card.js:83)
    in Card (at App.js:69)
    in div (at App.js:25)
    in App (at src/index.js:8)
    in StrictMode (at src/index.js:7)
bndw commented 3 years ago

This is affecting Firefox on mobile, too, where a blank page is rendered by default :(

bndw commented 3 years ago

@tplive Thanks for the report, this was a regression and it's been resolved (thanks @olekstomek for the patch!)