v2.1.0 throws error when used with next.js
See original GitHub issueError: Nesting detected at 1:289. Unfortunately nesting is not supported by styled-jsx.
at Function.disableNestingPlugin (/home/dre/workspaces/reactjs/phreshr/node_modules/styled-jsx/dist/lib/style-transform.js:19:13)
at proxy (/home/dre/workspaces/reactjs/phreshr/node_modules/stylis/stylis.js:1133:30)
at compile (/home/dre/workspaces/reactjs/phreshr/node_modules/stylis/stylis.js:679:10)
at compile (/home/dre/workspaces/reactjs/phreshr/node_modules/stylis/stylis.js:285:17)
at stylis (/home/dre/workspaces/reactjs/phreshr/node_modules/stylis/stylis.js:1270:16)
at stringifyRules (/home/dre/workspaces/reactjs/phreshr/node_modules/styled-components/lib/utils/stringifyRules.js:27:31)
at ComponentStyle.generateAndInjectStyles (/home/dre/workspaces/reactjs/phreshr/node_modules/styled-components/lib/models/ComponentStyle.js:59:24)
at StyledComponent.generateAndInjectStyles (/home/dre/workspaces/reactjs/phreshr/node_modules/styled-components/lib/models/StyledComponent.js:124:38)
at StyledComponent.componentWillMount (/home/dre/workspaces/reactjs/phreshr/node_modules/styled-components/lib/models/StyledComponent.js:153:39)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:21 (9 by maintainers)
Top Results From Across the Web
Advanced Features: Error Handling - Next.js
Error Handling. This documentation explains how you can handle development, server-side, and client-side errors. Handling Errors in Development.
Read more >Error thrown trying to run next.js with express in local ...
I get the following error when 'npm run dev' is used on the command line. Package.json: { "name": "nextjs", "description": "NextJS Tutorial ...
Read more >The Next.js Handbook – Learn Next.js for Beginners
I wrote this tutorial to help you quickly learn Next.js and get familiar with how it works. It's ideal for you if you...
Read more >Next.js - AEM Headless Example | Adobe Experience Manager
This Next.js application demonstrates how to query content using AEM's ... All deployments requires WKND Shared v2.1.0+, WKND Site v2.1.0+, ...
Read more >Testing and error handling patterns in Next.js - LogRocket Blog
JavaScript also provides some error handling APIs: the throw statement and the try…catch statement. These can be used within the API of a ......
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 FreeTop 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
Top GitHub Comments
@philpl @giuseppeg The
x = new stylis
pattern landed with 3.2.0@giuseppeg Yea, this has already been fixed in SC since 17 days haha. Sorry for forgetting to close this issue https://github.com/styled-components/styled-components/releases/tag/v2.1.1