Problem that only occurs on Railway
antonioandredev
HOBBYOP
a year ago
I'm trying to upload my backend to Railway but it's giving me an error: /app/node_modules/@nestjs/typeorm/dist/common/typeorm.utils.js:123
const generateString = () => crypto.randomUUID();
ReferenceError: crypto is not definedBut this error only occurs in Railway, when I run the build and then run the application after the build, no error occurs.
ⓘ Deployment information is only viewable by project members and Railway employees.
2 Replies
brody
Hello, In your package.json set your `engines.node` to `20`
antonioandredev
HOBBYOP
a year ago
This worked! Thank you very much
Status changed to Solved brody • over 1 year ago

