zerosodium
zerosodium
Explore posts from servers
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
I have this tsconfig as a starter but still the same results
{
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "ES2020",
"sourceMap": true,
"outDir": "/dist",
"composite": true
},
"include": ["src/**/*"]
}
{
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "ES2020",
"sourceMap": true,
"outDir": "/dist",
"composite": true
},
"include": ["src/**/*"]
}
any tips would be so so appreicated
27 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
I actually dont even have a tsconfig now that I look but not sure it matters?
27 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
neg, but could it be a tsconfig issue?
27 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
it still works in dev, but more concerned that my build command:
"build": "tsc src/index.ts --outDir dist",
"build": "tsc src/index.ts --outDir dist",
keeps transpiling it incorrectly
27 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
could that be the reason why?
27 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
"dependencies": {
"utils": "*"
},
"devDependencies": {
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
}
"dependencies": {
"utils": "*"
},
"devDependencies": {
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
}
27 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
it's so weird though, like my start command run fines in local and prints a test string but not in prod 😔
27 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
these are the deploy logs that I think you might find relevant:
TypeError: (0 , utils_1.isEven) is not a function
at Object.<anonymous> (/app/dist/index.js:5:20)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
TypeError: (0 , utils_1.isEven) is not a function
at Object.<anonymous> (/app/dist/index.js:5:20)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
27 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
update - figured out the build issues but seems like one of my packages is having an issue calling a function from another package. in my export package I have
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEven = void 0;
var isEven = function (n) {
console.log("isEven");
};
exports.isEven = isEven;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEven = void 0;
var isEven = function (n) {
console.log("isEven");
};
exports.isEven = isEven;
and in the package I am importing the function I have
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// @ts-ignore
var utils_1 = require("utils");
(0, utils_1.isEven)(2);
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// @ts-ignore
var utils_1 = require("utils");
(0, utils_1.isEven)(2);
27 replies
RRailway
Created by CSteez903 on 6/2/2023 in #✋|help
Verify Internet Connection Error
highly suggest copying the curl coming from a websites devtools and pasting it in postman to spoof the api calls
37 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
27 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
NX Monorepo with Railway
95ddbf08-40f9-41d9-8325-2d4614012abc
27 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
Using Node V18 in railway
df86c007-738e-4bbd-8164-747827066195
6 replies
RRailway
Created by zerosodium on 6/2/2023 in #✋|help
cron timing follows UTC?
df86c007-738e-4bbd-8164-747827066195
6 replies