You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to map <style> tags throws TypeError "Cannot read property 'start' of undefined".
If the current behavior is a bug, please provide the steps to reproduce and possibly a minimal demo or testcase in the form of a Next.js app, CodeSandbox URL or similar
I'm creating a styleguide, and the Container component is responsible for rendering a div with a max-width based on @media min-width breakpoints.
Being able to declare styles from an array will be important to the styleguide as I'd like the consumer to be able to set the breakpoints as they seem fit.
If this is not possible but anyone thinks of a workaround for the scenario, please let me know 😄
What is the expected behavior?
<style> tags should be mappable.
#### Environment (include versions)
* OS: Windows 10
* Browser: Chrome
* styled-jsx (version): 3.3.2
#### Did this work in previous versions?
No.
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Feature.
What is the current behavior?
Trying to map <style> tags throws TypeError "Cannot read property 'start' of undefined".
If the current behavior is a bug, please provide the steps to reproduce and possibly a minimal demo or testcase in the form of a Next.js app, CodeSandbox URL or similar
I'm creating a styleguide, and the Container component is responsible for rendering a div with a max-width based on @media min-width breakpoints.
This works:
However, this throws the TypeError "Cannot read property 'start' of undefined":
Being able to declare styles from an array will be important to the styleguide as I'd like the consumer to be able to set the breakpoints as they seem fit.
If this is not possible but anyone thinks of a workaround for the scenario, please let me know 😄
What is the expected behavior?
<style> tags should be mappable. #### Environment (include versions) * OS: Windows 10 * Browser: Chrome * styled-jsx (version): 3.3.2 #### Did this work in previous versions? No.The text was updated successfully, but these errors were encountered: