frankcollins3 / Next-Water-App

Happy, Healthy Water Cycling App that tracks user/human fluid intake.
https://next-water-app.vercel.app
1 stars 0 forks source link

react-router-dom document not defined [12:29pm] #32

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

attempting to do: pass <Component {...pageProps} />

error: Screen Shot 2023-07-13 at 12 25 41 PM

proposed approach: 0: window.location.pathname &&

// window is not defined

1: tinker and edit refer to docs / AI

frankcollins3 commented 1 year ago

👎 <Component {...pageProps}/> // thought this was the problem. 👎 👎 // this is the problem. [12:32pm]

frankcollins3 commented 1 year ago

cruise control/auto-pilot. This is nextJS not React.

another problem is using the

component when
content should be in index? [12:49pm]

frankcollins3 commented 1 year ago

not in nextJS. forgot.