๐Ÿ“—
UpGrade Platform - Documentation
6.0
6.0
  • UpGrade Overview
  • Creating an Experiment
    • Unit of Assignment
    • Simple Experiment
    • Factorial Experiment
    • Inclusion and Exclusion
    • Schedule and Post-Rule
    • Exporting Experiment Data and Design
  • Creating a Feature Flag
  • How UpGrade Works
  • Researcher Guide
  • Developer Guide
    • โšกQuick Start: Running UpGrade Locally with Docker
    • โšกQuick Start: Running locally w/o Docker
    • UpGrade + AdapComp (Mooclet) in Docker
    • ๐Ÿšถโ€โ™€๏ธWalkthroughs
      • Your Application and UpGrade
      • Example 1: A Quiz Web App
      • Example 2: An Online Math Game
    • ๐Ÿ“šReference
      • API
      • Client Libraries
        • TypeScript / JS
          • Class: UpgradeClient
          • Class: Assignment
          • SDK Interfaces
            • Interface: IMetric
            • Interface: IExperimentUser
            • Interface: IExperimentUserAliases
            • Interface: ILog
            • Interface: IMarkExperimentPoint
            • Interface: IMetric
            • Interface: IRequestOptions
            • Interface: IResponse
            • Interface: IUser
            • Interface: IUserGroup
      • Environment Variables
        • Frontend Environment
        • Backend Environment
      • Context Metadata
      • Metrics
      • Setting up Google-Auth
      • API Authorization
      • Data Architecture
    • ๐Ÿ‘จโ€๐Ÿ’ปContributing Code
      • Branching Workflow (Git-Flow)
      • Pull Request Expectations
    • ๐Ÿ˜…Troubleshooting
      • Relation โ€˜experiment_conditionโ€™ already exists
      • User not found. Authorization error
      • Token is not present in the request header
      • nodemon exits without explanation
      • Unable to find New Relic module configuration
      • No email received for export data
      • Opening a new tab in UpGrade prompts for re-authorization
      • Error: Cannot find module 'upgrade_types' (or a type from 'upgrade_types' does not exist)
  • Glossary
Powered by GitBook
On this page
  • Problem
  • Solution
  1. Developer Guide
  2. Troubleshooting

Error: Cannot find module 'upgrade_types' (or a type from 'upgrade_types' does not exist)

PreviousOpening a new tab in UpGrade prompts for re-authorizationNextGlossary

Problem

Error: Cannot find module 'upgrade_types'

...or if import of a type from upgrade_types cannot be resolved

Solution

This build error may occur in several different places, especially if switching branches or pulling latest from current branch. upgrade_types is a at the root of the monorepo that contains shared enums and interfaces used by multiple other modules within the monorepo. Sometimes this may get out of sync in local machine. If running local docker setup, try running make setup to reinstall and copy the types folder into the backend directory. If that's a no go, you can do it manually or run: cd /types npm install cd ../backend cp -R ../types packages/Upgrade

๐Ÿ˜…
separate module