routeTree is failing to generate, saying that a semicolon is missing #2308
-
Hello, There is my repository: https://github.com/GoofyComponent/RandomGraill/tree/intergrate-router I tried everything, event to downgrade packages but i cant find whats happening. I really hope you can help me 🙏 SyntaxError: ';' expected. (43:19)
41 | fileRoutesByFullPath: FileRoutesByFullPath
42 | fullPaths:
> 43 | fileRoutesByTo: FileRoutesByTo
| ^
44 | to:
45 | id: '__root__' |
46 | fileRoutesById: FileRoutesById
at Q4 (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:17:76108)
at x3 (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:20:773)
at Object.w3 [as parse] (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:20:1164)
at parse4 (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/index.mjs:20685:24)
at async coreFormat (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/index.mjs:21146:7)
at async formatWithCursor (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/index.mjs:21348:14)
at async Module.format2 (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/index.mjs:22733:25)
at async generator (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/@tanstack/router-generator/dist/esm/generator.js:505:34)
at async generate (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/@tanstack/router-plugin/dist/esm/core/router-generator-plugin.js:23:7)
at async run (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/@tanstack/router-plugin/dist/esm/core/router-generator-plugin.js:47:7) {
loc: { start: { line: 43, column: 19 }, end: { line: 43, column: 19 } },
cause: ud: ';' expected.
at md (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:17:8577)
at vd (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:17:10477)
at y0 (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:17:71407)
at $4 (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:17:75969)
at I0 (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:17:75711)
at file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:20:1128
at K4 (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:17:76262)
at Object.w3 [as parse] (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/plugins/typescript.mjs:20:1112)
at parse4 (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/index.mjs:20685:24)
at async coreFormat (file:///Users/destcom/Documents/PRO/APPRENTISSAGE/DEV_MOBILE/RandomGraill/front/node_modules/prettier/index.mjs:21146:7) {
fileName: 'estree.ts',
location: { start: [Object], end: [Object] }
},
codeFrame: '\x1B[0m \x1B[90m 41 |\x1B[39m fileRoutesByFullPath\x1B[33m:\x1B[39m \x1B[33mFileRoutesByFullPath\x1B[39m\n' +
' \x1B[90m 42 |\x1B[39m fullPaths\x1B[33m:\x1B[39m \n' +
'\x1B[31m\x1B[1m>\x1B[22m\x1B[39m\x1B[90m 43 |\x1B[39m fileRoutesByTo\x1B[33m:\x1B[39m \x1B[33mFileRoutesByTo\x1B[39m\n' +
' \x1B[90m |\x1B[39m \x1B[31m\x1B[1m^\x1B[22m\x1B[39m\n' +
' \x1B[90m 44 |\x1B[39m to\x1B[33m:\x1B[39m \n' +
" \x1B[90m 45 |\x1B[39m id\x1B[33m:\x1B[39m \x1B[32m'__root__'\x1B[39m \x1B[33m|\x1B[39m \n" +
' \x1B[90m 46 |\x1B[39m fileRoutesById\x1B[33m:\x1B[39m \x1B[33mFileRoutesById\x1B[39m\x1B[0m'
} |
Beta Was this translation helpful? Give feedback.
Answered by
schiller-manuel
Sep 10, 2024
Replies: 1 comment
-
this was a bug for the rare case when only the root route exists |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
DestroyCom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this was a bug for the rare case when only the root route exists
fixed in https://github.com/TanStack/router/releases/tag/v1.57.9