Advertisement
Guest User

Jen apparently cant use tanstack start lmfao

a guest
Dec 6th, 2024
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.56 KB | None | 0 0
  1. ///////////////////
  2. // ERROR MESSAGE //
  3. ///////////////////
  4.  
  5. Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
  6.  
  7. Check your code at __root.tsx:37.
  8. at RootDocument (/home/admin/Coding/cleric/atproto/v1/app/routes/__root.tsx:34:27)
  9. at RootComponent
  10. at MatchInnerImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/Match.tsx:108:62)
  11. at CatchBoundaryImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:31:1)
  12. at CatchBoundary (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:11:32)
  13. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  14. at SafeFragment (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/SafeFragment.tsx:4:19)
  15. at SafeFragment (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/SafeFragment.tsx:4:19)
  16. at MatchImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/Match.tsx:19:52)
  17. at CatchBoundaryImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:31:1)
  18. at CatchBoundary (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:11:32)
  19. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  20. at SafeFragment (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/SafeFragment.tsx:4:19)
  21. at Matches (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/Matches.tsx:208:18)
  22. at RouterContextProvider (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/RouterProvider.tsx:62:3)
  23. at RouterProvider (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/RouterProvider.tsx:94:5)
  24. at StartServer (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+start@1.86.1_@libsql+client@0.14.0_@types+node@22.10.1_drizzle-orm@0.36.4_@libsql+c_gs2ezffwnrmle436t66wwrlkfm/node_modules/@tanstack/start/src/server/StartServer.tsx:11:9)
  25. Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
  26.  
  27. Check your code at __root.tsx:40.
  28. at RootDocument (/home/admin/Coding/cleric/atproto/v1/app/routes/__root.tsx:34:27)
  29. at RootComponent
  30. at MatchInnerImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/Match.tsx:108:62)
  31. at CatchBoundaryImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:31:1)
  32. at CatchBoundary (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:11:32)
  33. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  34. at SafeFragment (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/SafeFragment.tsx:4:19)
  35. at SafeFragment (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/SafeFragment.tsx:4:19)
  36. at MatchImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/Match.tsx:19:52)
  37. at CatchBoundaryImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:31:1)
  38. at CatchBoundary (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:11:32)
  39. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  40. at SafeFragment (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/SafeFragment.tsx:4:19)
  41. at Matches (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/Matches.tsx:208:18)
  42. at RouterContextProvider (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/RouterProvider.tsx:62:3)
  43. at RouterProvider (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/RouterProvider.tsx:94:5)
  44. at StartServer (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+start@1.86.1_@libsql+client@0.14.0_@types+node@22.10.1_drizzle-orm@0.36.4_@libsql+c_gs2ezffwnrmle436t66wwrlkfm/node_modules/@tanstack/start/src/server/StartServer.tsx:11:9)
  45. Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
  46.  
  47. Check your code at __root.tsx:36.
  48. at RootDocument (/home/admin/Coding/cleric/atproto/v1/app/routes/__root.tsx:34:27)
  49. at RootComponent
  50. at MatchInnerImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/Match.tsx:108:62)
  51. at CatchBoundaryImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:31:1)
  52. at CatchBoundary (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:11:32)
  53. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  54. at SafeFragment (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/SafeFragment.tsx:4:19)
  55. at SafeFragment (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/SafeFragment.tsx:4:19)
  56. at MatchImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/Match.tsx:19:52)
  57. at CatchBoundaryImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:31:1)
  58. at CatchBoundary (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/CatchBoundary.tsx:11:32)
  59. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  60. at SafeFragment (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/SafeFragment.tsx:4:19)
  61. at Matches (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/Matches.tsx:208:18)
  62. at RouterContextProvider (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/RouterProvider.tsx:62:3)
  63. at RouterProvider (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+react-router@1.86.1_@tanstack+router-generator@1.86.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-router/src/RouterProvider.tsx:94:5)
  64. at StartServer (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/@tanstack+start@1.86.1_@libsql+client@0.14.0_@types+node@22.10.1_drizzle-orm@0.36.4_@libsql+c_gs2ezffwnrmle436t66wwrlkfm/node_modules/@tanstack/start/src/server/StartServer.tsx:11:9)
  65. Error in renderToPipeableStream: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
  66. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6120:9)
  67. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  68. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  69. at renderIndeterminateComponent (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:5852:7)
  70. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6023:7)
  71. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  72. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  73. at renderIndeterminateComponent (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:5852:7)
  74. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6023:7)
  75. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  76. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  77. at renderNode (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6336:12)
  78. at renderChildrenArray (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6288:7)
  79. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6218:7)
  80. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  81. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6048:9)
  82. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  83. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  84. at renderIndeterminateComponent (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:5852:7)
  85. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6023:7)
  86. at renderMemo (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:5945:3)
  87. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6088:11)
  88. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  89. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  90. at finishClassComponent (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:5754:3)
  91. at renderClassComponent (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:5762:3)
  92. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6020:7)
  93. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  94. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  95. at renderIndeterminateComponent (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:5852:7)
  96. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6023:7)
  97. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  98. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  99. at renderIndeterminateComponent (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:5852:7)
  100. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6023:7)
  101. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  102. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  103. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6048:9)
  104. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  105. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  106. at renderIndeterminateComponent (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:5852:7)
  107. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6023:7)
  108. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  109. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  110. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6048:9)
  111. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11)
  112. at renderNodeDestructive (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14)
  113. at renderIndeterminateComponent (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:5852:7)
  114. at renderElement (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6023:7)
  115. at renderNodeDestructiveImpl (/home/admin/Coding/cleric/atproto/v1/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11) undefined
  116.  
  117. ////////////////
  118. // __root.tsx //
  119. ////////////////
  120.  
  121. import {
  122. Outlet,
  123. ScrollRestoration,
  124. createRootRoute,
  125. } from '@tanstack/react-router'
  126. import { Body, Head, Html, Meta, Scripts } from '@tanstack/start'
  127. import type { ReactNode } from 'react'
  128.  
  129. export const Route = createRootRoute({
  130. meta: () => [
  131. {
  132. charSet: 'utf-8',
  133. },
  134. {
  135. name: 'viewport',
  136. content: 'width=device-width, initial-scale=1',
  137. },
  138. {
  139. title: 'TanStack Start Starter',
  140. },
  141. ],
  142. component: RootComponent,
  143. notFoundComponent: () => <div>Not Found sorry</div>
  144. })
  145.  
  146. function RootComponent() {
  147. return (
  148. <RootDocument>
  149. <Outlet />
  150. </RootDocument>
  151. )
  152. }
  153.  
  154. function RootDocument({ children }: Readonly<{ children: ReactNode }>) {
  155. return (
  156. <Html>
  157. <Head>
  158. <Meta />
  159. </Head>
  160. <Body>
  161. {children}
  162. <ScrollRestoration />
  163. <Scripts />
  164. </Body>
  165. </Html>
  166. )
  167. }
  168.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement