Next build not works
See original GitHub issuei 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:
- Created 2 years ago
- Comments:16 (8 by maintainers)
Top 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 >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
thx again, all works perfect!
nice! thx, i’ll check it in the evening