-
-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App Directory: Uncaught Error: DYNAMIC_SERVER_USAGE
with NextJS 13.5.4, BlitzJS 2.0.0-beta.34
#4232
Comments
Uncaught Error: DYNAMIC_SERVER_USAGE at updateDehydratedSuspenseComponent
Uncaught Error: DYNAMIC_SERVER_USAGE at updateDehydratedSuspenseComponent
with NextJS 13.5.4, BlitzJS 2.0.0-beta.34
Uncaught Error: DYNAMIC_SERVER_USAGE at updateDehydratedSuspenseComponent
with NextJS 13.5.4, BlitzJS 2.0.0-beta.34Uncaught Error: DYNAMIC_SERVER_USAGE
with NextJS 13.5.4, BlitzJS 2.0.0-beta.34
I also faced this issue while doing server-side rendering, I noticed that when I'm able to access my page by going from "/" to "/dashboard" BUT can not access "/dashboard" directly. In my component, I want to use // Dashboard.jsx
const Calendar = ({ dateString }: { dateString?: string | undefined }) => {
let currentDate: Date = new Date();
if (dateString) {
currentDate = convertDateStringToDate(dateString);
}
const [scheduledClasses] = useQuery(getClasses, {
dateString,
});
// ...other code
return ( // .... )
} The error won't appear if I removed // DashboardLayout.jsx
const [render, setRender] = useState(false);
useEffect(() => {
setRender(true);
}, []);
// ...
<AppShell.Main>{render && children}</AppShell.Main> |
I have My understanding is, that the
I tried your And adding it to the layout as well causes new hydration errors. |
It looks like this error came from a library that we used 'osm-auth'. Once I remove it, the error is gone. I will close this here and referenced it at osmlab/osm-auth#124. |
@siddhsuresh FYI I reopened this ticket. We managed to somehow get rid of the error in our main flow which is why I thought it was related to the library I mentioned but that was wrong and I could have know because the demo app that this bug report is based on (https://github.com/FixMyBerlin/blitz-test) shows the error without without any special dependencies. |
Thanks for the update @tordans I will take a look in some time. |
Ran into this issue while migrating a Blitz app from pages router to app router. Managed to isolate the issue to |
What is the problem?
I created a fresh blitz app, added a
project
model with some user relation and migrated it to the app directory.The app now shows the error message
Ping #4112 and #4149 but this is based on the newest blitz and next js versions.
Paste all your error logs here:
Demo app is here https://github.com/FixMyBerlin/blitz-test
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response
The text was updated successfully, but these errors were encountered: