Error: Cannot find module 'tslib' while runing forge deploy

When ever I try to run “forge deploy” I get the error message:

Error: Error thrown in the snapshot context.
App code snapshot error: Snapshot error occurred: Error: Cannot find module 'tslib'
Learn more about the snapshot context at

The Error o cures even though tslib is properly installed in the Project. Since i can´t find anything to help me on the web, I am asking here.


  "name": "...",
  "version": "1.0.0",
  "main": "src/index.ts",
  "types": "src/index.ts",
  "license": "ISC",
  "private": true,
  "homepage": "./",
  "scripts": {
    "tunnel": "forge tunnel",
    "deploy": "forge deploy",
    "upgrade": "forge install --upgrade",
    "app-install": "forge install",
    "lint": "eslint ./src --ext .ts,.tsx",
    "lint:fix": "eslint --fix ./src --ext .ts,.tsx",
    "typecheck": "tsc --noEmit --skipLibCheck"
  "devDependencies": {
    "@cl...ts": "^1.9.0",
    "@forge/cli": "^4.4.0",
    "@types/node": "^17.0.5",
    "@types/react": "^17.0.38",
    "@typescript-eslint/eslint-plugin": "^5.34.0",
    "@typescript-eslint/parser": "^5.34.0",
    "eslint": "^8.22.0",
    "eslint-plugin-react": "^7.30.1",
    "typescript": "^4.7.4"
  "dependencies": {
    "@babel/preset-react": "^7.14.5",
    "@el...js": "^1.0.1",
    "@forge/api": "^2.7.0",
    "@forge/events": "^0.6.1",
    "@forge/resolver": "^1.4.4",
    "@forge/ui": "^1.2.1",
    "date-fns": "^2.29.3",
    "date-fns-tz": "^1.3.4",
    "eslint-plugin-react-hooks": "^4.3.0",
    "ts-results": "3.0.0",
    "tslib": "^1.6.1"

node: v.16.19.0

Hey I believe this is due to an issue with the ts-results package you have installed. You could try using true-myth instead: true-myth - npm