-
Notifications
You must be signed in to change notification settings - Fork 87
Bug: appDir
applications can have dataRoute: null
#1940
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
Comments
Feels like this is a high priority so I've added it to the current iteration as an "up next". |
so no fix yet right? I don't know if any relation, but whenever I put an UI to Next13 I have an hydratation error : hydration-error-info.js?32aa:27 Warning: Extra attributes from the server: cz-shortcut-listen |
I upgraded to the latest version of Next.js 13.2.4 and these are the types now. We can definitely upgrade Next.js in the project to get the new types, but the it can be fixed even without that update. export const getRscDataRouter = ({ routes: staticRoutes, dynamicRoutes }: PrerenderManifest): EdgeFunction => {
const staticRouteSet = new Set(
Object.entries(staticRoutes)
- .filter(([, { dataRoute }]) => dataRoute.endsWith('.rsc'))
+ .filter(([, { dataRoute }]) => dataRoute?.endsWith('.rsc'))
.map(([route]) => route),
)
... From what I can tell this isn't picked up in the codebase (even with the Next.js update) because it's a file that is copied. See I'm going to go ahead and put up a fix for this, and I'll create a separate issue for updating the Next.js version in the repo. |
Hello, I'm getting the same error as well when deploying Nextjs 13 site https://app.netlify.com/sites/next-13-trail/deploys/6423617b0dc578000711a6fe |
As mentioned in Slack @narbota, we're currently rolling out v. 4.33.0. If they're not auto-installing, they can upgrade to the latest version of the runtime. |
Upgraded to 4.33.0 today, still hitting the same error:
|
@Fox32, apologies, but I mispoke. This fix didn't roll out in v. 4.33.0. I'm adding it to the next release. |
Hi there, I've been trying unsuccessfully to deploy Next (v13.2.4) with experimental appDir: true BUT with no edge functions at all. It's way impossible having this up and running, nevertheless my setup works fine locally. Also, a different Github project/repo using a previous version of next (13.1.6) worked like a charm when deployed in Netlify, but with the latest one, after trying and trying different workarounds suggested by community users, I keep getting this: I got nothing fancy, just a fresh nextjs using --typescript... and appDir=true. My dependencies (package.json): "dependencies": { My next.config.js: /** @type {import('next').NextConfig} */ ...it's really frustrating not seeing any advance on this. Thanks in advance |
@proyectosynergosorg, the fix in #2018 will sort this out. I'm looking to get it merged tomorrow. |
Ohhh so it is a bug on NextJs. Hopefully i'll get to try the fix out tomorrow ;-; Also, is there any easy way to a workaround or something? :> |
@nickytonline Any movement on the fix? I see #2018 was merged but I'm still running into the same issue on my deploys that have internal errors on edge function bundling. I posted on a thread here: https://answers.netlify.com/t/next-app-edge-function-bundling-error/89530 |
@kindrift-vt i honestly just used vercel page to deploy the app and it's working perfectly. Didn't have this issue there |
This is fixed and will start rolling out next week @kindrift-vt. |
For the record: with Next.js v13.2, removing |
hey @nickytonline . I've installed the latest update |
@myko1328, this error seems unrelated to the original issue. Mind creating a separate issue for this? |
Can confirm that @myko1328's error now occurs. this might be related in the sense that the error only surfaced after the fix. Should I make a new issue linking to this? |
Did you remove the api directory altogether or remove them from either the |
I removed the api directory altogether. This is how I managed to build before v13.3. |
I removed the api directory. Didn't work. But that might be because there can be a new bug? |
Same error message as above using the latest versions of Next and the plugin. My Project is created via create-next-app with the appDir. Otherwise I haven't made any other major changes. Runs fine locally. |
Hello, I am experiencing this issue as well. I'm also using
|
@miketalley an others, the fix for this is in the latest version of the Next.js runtime, 4.34.0. Is that the version of the Next.js runtime you see in your logs @miketalley? |
Yes
|
|
When you run
next build
on https://github.com/redmonkez12/interactive-rating-component/tree/079f65a9b1d84efe2c1032dc01c022b46a7c0fb5, thenprerender-manifest.json
will containOur runtime currently can't handle that, and will throw an error here, because
dataRoute is null
:https://github.com/netlify/next-runtime/blob/72ab895be865402fa0d92431f293129c70ae6c8b/packages/runtime/src/templates/edge-shared/rsc-data.ts#L38
To fix that, we should update the Next.js version that this repo is pulling TS types from, and fix all places where the types now fail.
The text was updated successfully, but these errors were encountered: