Skip to content

Commit

Permalink
Ensure null exports don't fail
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Sep 21, 2023
1 parent 64e0a5c commit f04cd13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-react/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async function loadRouteModuleWithBlockingLinks(
// ignore those when setting the Component
let defaultExportIsEmptyObject =
typeof routeModule.default === "object" &&
Object.keys(routeModule.default).length === 0;
Object.keys(routeModule.default || {}).length === 0;

// Include all `browserSafeRouteExports` fields
return {
Expand Down

0 comments on commit f04cd13

Please sign in to comment.