Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error for missing default export in dynamic metadata routes (#…
…57711) Displaying hints of "missing default export" if you didn't properly export the `default` handler for og image ``` ▲ Next.js 14.0.1-canary.2 - Local: http://localhost:3000 ✓ Ready in 1089ms ✓ Compiled /opengraph-image/[[...__metadata_id__]]/route in 211ms (44 modules) ⨯ Error: Default export is missing in "/Users/huozhi/workspace/next.js/test/e2e/app-dir/metadata-dynam ic-routes/app/opengraph-image.tsx" at eval (webpack:///app/opengraph-image.tsx?3407:11:1) at (app-metadata-route)/../../../../packages/next/dist/build/webpack/loaders/next-metadata-route-lo ader.js?page=%2Fopengraph-image%2F%5B%5B...__metadata_id__%5D%5D%2Froute&isDynamic=1!./app/opengraph-im age.tsx?__next_metadata_route__ (/Users/huozhi/workspace/next.js/test/e2e/app-dir/metadata-dynamic-rout es/.next/server/app/opengraph-image/[[...__metadata_id__]]/route.js:362:1) at __webpack_require__ (/Users/huozhi/workspace/next.js/test/e2e/app-dir/metadata-dynamic-routes/.n ext/server/webpack-runtime.js:33:42) ```
- Loading branch information