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.

Example usage with Next.js

See original GitHub issue

The suggested approach (to use next/dynamic) did not work for me. I could not use Allotment.Pane after dynamically importing with ssr:false, neither from allotment directly nor from an intermediate component file.

But I got it to work using combination of plain import and useEffect just fine.

https://codesandbox.io/s/nextjs-typescript-allotment-c7yvk?file=/components/Panes.tsx

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alexkreidlercommented, Nov 25, 2022

Any updates on this? I’m trying with NextJS 13 but I don’t get the blue bars rendered on hover. It looks like its SSRing and showing the smallest possible container size.

1reaction
unknowncommented, Mar 19, 2022

To add, the suggested approach using next/dynamic in the other issue is incorrect. As per this comment from a Next maintainer, next/dynamic is only used to import components.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next.js tutorial with examples: Build better React apps with ...
Today, we'll help you get started with Next.js with examples. ... We'll use the default Next.js app generated with a new project.
Read more >
Create a Next.js App | Learn Next.js
Next.js: The React Framework · An intuitive page-based routing system (with support for dynamic routes) · Pre-rendering, both static generation (SSG) and server- ......
Read more >
18 Great Examples of Next.js Websites
Examples of big eCommerce Next js websites: ... Deliveroo is a food delivery app that helps with ordering food from restaurants and takeaways....
Read more >
Get Started with Next.js – The React Library Your Project ...
The goal of this tutorial is to get you started using Next.js as ... of by checking 100s of example Next.js projects at...
Read more >
Find your Next.js templates
Blog Starter Kit. A statically generated blog example using Next.js and Markdown. by △ Vercel ...
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