4 months ago
I cannot deploy my project what is the issue, i's reactt and nodejs at the same time
/app/node_modules/path-to-regexp/dist/index.js:96
throw new PathErrorMissing parameter name at index ${index}, str);
^
PathError [TypeError]: Missing parameter name at index 2: /*; visit https://git.new/pathToRegexpError for info
at name (/app/node_modules/path-to-regexp/dist/index.js:96:19)
at parse (/app/node_modules/path-to-regexp/dist/index.js:113:68)
at pathToRegexp (/app/node_modules/path-to-regexp/dist/index.js:267:58)
at Object.match (/app/node_modules/path-to-regexp/dist/index.js:237:30)
at matcher (/app/node_modules/router/lib/layer.js:86:23)
at new Layer (/app/node_modules/router/lib/layer.js:93:62)
at Function.route (/app/node_modules/router/index.js:428:17)
at Function.route (/app/node_modules/express/lib/application.js:257:22)
at app.<computed> [as get] (/app/node_modules/express/lib/application.js:478:22)
at file:///app/dist/server/node-build.mjs:3910:5 {
originalPath: '/*'
}
Node.js v20.18.1
2 Replies
4 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
4 months ago
I would double check all the routing for the Express side of the code to make sure none of the routes are defined as /*.