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.

Next build not works

See original GitHub issue

i was using old your API for a long time. Now i decided to upd it to 2.1.6. So I rewrite method windowScrollTo

My code: import { windowScrollTo } from 'seamless-scroll-polyfill';

<div onClick={handleScroll} className={className}> {children} </div> and handleScroll is calculating offsetPosition and scroll in the end: window && windowScrollTo(window, { top: offsetPosition, behavior: "smooth", });

All is perfect when i check next dev in Next.js, but it not works, when I use next build I tryied another methods like windowScroll or do it in try-catch or check isWindow but without success

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
bezzskillacommented, Feb 21, 2022

thx again, all works perfect!

0reactions
bezzskillacommented, Feb 19, 2022

nice! thx, i’ll check it in the evening

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to build next.js production? - Stack Overflow
Does anyone know how to get a prod build in next.js working correctly I did everything in the next.js documentation but always get...
Read more >
I ran next build but it is saying next command not found #8945
I used this command but same problem. next build Command 'next' not found, but can be installed with: sudo apt install mailutils-mh sudo ......
Read more >
Deployment - Next.js
js application to production. This document will show how to deploy either managed or self-hosted using the Next.js Build API. Next.js Build API....
Read more >
How to run scripts before every build on Next.js | Kontent.ai.
Running some code before we execute the site build is not that complicated. ... However, this works only for Node.js scripts.
Read more >
What to do when "npm run dev" is not working? (React)
The console gave me an error sh: next: command not found. ... folder doesn't show up in my Next apps, and it should...
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