Deploy express js server (typescript) fail

I’m trying to upload an express server written in Typescript, the process keeps failing because of some errors like this - src/utils/validatePermissions.ts(2,35): error TS2307: Cannot find module ‘…/errors/Unauthorized’ or its corresponding type declarations .

When I work locally everything goes smoothly. I have in the project inside the src folder an errors folder in which I have custom errors files, in every file in the project where I use one of these errors I get an error during deployment, does anyone know how to help?

Hi,

You may need to check the file references are correct, including filename/path casing. Linux has a case-sensitive filesystem, so Unauthorized would be different to unauthorized.

Alan

Thanks, I needed to change the folder name, now it’s work, thank you!

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