Issue with Deploying Strapi CMS in TypeScript to Railway
Currently facing challenges while trying to deploy Strapi CMS written in TypeScript to Railway. Despite the availability of a JavaScript template, there's a lack of a specific TypeScript template, and the documentation doesn't provide guidance on deploying to Railway using TypeScript.
Error Logs Encountered from Railway
Reviewing the error logs received from Railway, it appears that there might be an issue related to compiling JavaScript files despite setting the compiler to ignore node modules.
#13 6.049 Error: Cannot find module 'typescript'
#13 6.049 Require stack:
#13 6.049 - /app/node_modules/fork-ts-checker-webpack-plugin/lib/typescript/type-script-worker-config.js
#13 6.049 - /app/node_modules/fork-ts-checker-webpack-plugin/lib/plugin-config.js
...
tsconfig.json Configuration Details
Below is the configuration for the TypeScript compiler outlined in the tsconfig.json file.
{
"extends": "@strapi/typescript-utils/tsconfigs/server",
"compilerOptions": {
"outDir": "dist",
"rootDir": "."
},
...
}
Package.json Information
Provided here is the package.json from the TypeScript quickstart template utilized.
{
"name": "aston-and-fincher-intranet-cms",
"private": true,
"version": "0.1.0",
...
}
Methods Attempted So Far
Following the deployment instructions for TypeScript, ensuring the correctness of my tsconfig.json file, and adding necessary environment variables have been attempted. However, these actions do not seem relevant to the issues reflected in the error logs.
Any assistance in resolving this matter would be greatly appreciated, as I prefer not resorting to the JavaScript alternative.