[Core] V0.6.1 cant start/build with Next.js
See original GitHub issueDescribe the bug Upgrading to the latest version of chakra breaks my site using Next.js
Expected Behavior Works as expected.
To Reproduce Upgrade and start next.js server
Suggested solution(s) Not sure yet, looks like an issue in the CSSReset component, but might me due to emotion
TypeError: Cannot read property 'body' of undefined
at tailwindPreflight (<path>/node_modules/@chakra-ui/core/dist/CSSReset/preflight.js:23:56)
at styles (<path>/node_modules/@chakra-ui/core/dist/CSSReset/index.js:64:56)
at Object.children (<path>/node_modules/@emotion/core/dist/core.cjs.dev.js:239:51)
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Next.js CLI
The Next.js CLI allows you to start, build, and export your application. To get a list of the available CLI commands, run the...
Read more >NextJS cannot find a valid build in the '.next' directory
When I try to deploy to Heroku I keep getting the following error: node server.js Could not find a valid build in the...
Read more >How to Build a Cross-Platform Application with Next.js and Tauri
In this tutorial, we'll use Tauri and Next.js to build a desktop-based cross-platform application and publish it to the Snap store and ...
Read more >Getting Started with Next.js - Chakra UI
Next.js 13 introduces a new app/ directory / folder structure. By default it uses Server Components. To use Chakra UI in those components, ......
Read more >My project using next.js ecommerce starter is not running locally
If the above solution doesn't work, try running npm start in your root ... Failed at the sanity-template-nextjs-ecommerce@1.0.0 start ...
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
Not sure if this helps as I haven’t been able to debug this thoroughly yet, but last night I started upgrading some deps and I hit a similar issue and it seems to be with @emotion/core going from 10.0.27 to 10.0.28.
I was able to upgrade chakra-ui/core from 0.5.2 to 0.6.1 by itself without issue, but as soon I bump @emotion/core, I get major freakout errors.
Okay, so im using heroku to host my next site, and i just cleared the cache and it seems to be working again… not sure what happened there?
thanks for the quick response though