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.

[Core] V0.6.1 cant start/build with Next.js

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jeremyadaviscommented, Feb 28, 2020

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.

1reaction
JClackettcommented, Feb 28, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

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