Customizer Error

Hi All,

I’m facing below error after running npm run debug, can anyone faced this issue if yes could you please help to resolve.

C:\Users\vsp5\Project\my-saas-customizer\node_modules\path-to-regexp\dist\index.js:73
throw new TypeError(Missing parameter name at ${i}: ${DEBUG_URL});

TypeError: Missing parameter name at 2: GitHub - pillarjs/path-to-regexp: Turn a path string such as `/user/:name` into a regular expression

Note: I followed @philip-ellis video for customizer configuration.

Hi @vasanthrajsp29,

When you did the npm install, did you notice any errors?
Could you please confirm if all the dependencies were installed correctly?

When I installed dependencies, I noticed I had issues related to typescript version, so I had to manually update that. It could be something else for you, I just wanted to confirm that first.

1 Like

Hi @Sachin_Rajathadri, Thanks for response!
I’ve VS Code, Postman & installed Node.js v22.11.0. I have not received any error while running npm install ,

Is there any other dependency I need to have other than these three?

Regards,
Vasanth

Could you please try to update the path-to-regexp by running this command - npm install path-to-regexp@latest

I did some research and it looks like you might have the latest version of express. Run npm list express.
If you see the version v5.x.x, then you might have to downgrade it. Because, the error that you got is caused by using : or * in one of your paths.

Here’s the workaround - javascript - TypeError: Invalid token at 1: https://git.new/pathToRegexpError - Stack Overflow).

Steps,
npm install [email protected]
Then delete package-lock.json
npm install

Hope this helps!

1 Like

Hi @Sachin_Rajathadri,

You’re right I’m able to fix the issue by downgrading express version to below 5.x.x
Thanks!

Regards,
Vasanth

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.