Comment on page
Troubleshooting
This page outlines any common issues that you'll run into while setting up the TypeScript starter, as well as how to fix them.
If you're getting the following error:
(node:80116) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot POST /api/auth/signin
Make sure you have screepsmod-auth installed on your private server, and you've set a password on the account in your private server as well.
Make sure you declare any extensions to the type interfaces as an ambient declaration. You can either:
- put them inside a
*.d.ts
file, or - in an existing
.ts
file (with at least oneimport
orexport
), you can usedeclare global { interface CreepMemory { ... } }
to accomplish the same effect.
Last modified 5yr ago