TypeError: value.replace is not a function
Hi, I'm trying to run my bot on pterodactyl (docker) nodejs 21. I'm getting the error
TypeError: value.replace is not a function
anyone any ideas?
Full error
Start command:
Both ts and js have been tried.
Thanks!4 Replies
https://github.com/TypeStrong/ts-node/issues/2000 have you tried anything here?
GitHub
[Typescript 5.0] TypeError: value.replace is not a function · Issu...
Search Terms Typescript 5.0 tsconfig extends array Expected Behavior No error. Actual Behavior $ npm exec -- ts-node --esm --swc ./path/to/reproduce.mts /path/to/node_modules/ts-node/dist/util.js:6...
What part? I have tried the packages that were suggested with no luck. I couldn't work out how to change the extends part. It seems this is the trouble
https://github.com/TypeStrong/ts-node/issues/2000#issuecomment-1630229384
"extends": ["@sapphire/ts-config", "@sapphire/ts-config/extra-strict", "@sapphire/ts-config/decorators"],
honestly this might be just a case of moving off ts-node. I dont see a update for it in 2 years. This was just what the default used. Tho I dont know why JS isnt working when I move it from my pc
Must have overwrote something... Its working now. I'm going to try replace ts-node still tho. Is there a recommended one for this project?Node 21 has been EOL for a while now. Update to Node 22 or 24
Since June 1st 2024 to be exact https://github.com/nodejs/release#release-schedule
GitHub
GitHub - nodejs/Release: Node.js Release Working Group
Node.js Release Working Group. Contribute to nodejs/Release development by creating an account on GitHub.