Screeps Typescript Starter
  • Introduction
  • Getting Started
    • Installation
    • Authenticating with Screeps
    • Deploying
  • In-Depth
    • Module bundling
    • Deploy destinations
    • TypeScript
    • Prettier
    • Testing
    • Cookbook
      • Environment variables
      • One-line PowerShell setup
    • Remote Development
    • Troubleshooting
    • Contributing to the docs
Powered by GitBook
On this page
  • Unable to upload code to Screeps private server
  • Unable to extend type interfaces (e.g. Game, Memory)
  1. In-Depth

Troubleshooting

PreviousRemote DevelopmentNextContributing to the docs

Last updated 6 years ago

This page outlines any common issues that you'll run into while setting up the TypeScript starter, as well as how to fix them.

Unable to upload code to Screeps private server

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 installed on your private server, and you've set a password on the account in your private server as well.

Unable to extend type interfaces (e.g. Game, Memory)

Make sure you declare any extensions to the type interfaces as an . You can either:

  • put them inside a *.d.ts file, or

  • in an existing .ts file (with at least one import or export), you can use declare global { interface CreepMemory { ... } } to accomplish the same effect.

For more info:

screepsmod-auth
ambient declaration
https://github.com/screepers/typed-screeps/issues/27