๐Ÿ“—
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

Unable to find New Relic module configuration

Problem

Unable to find New Relic module configuration: [nodemon] starting `node --inspect=0.0.0.0:9200 -r ts-node/register ./src/app.ts`

[nodemon] starting `node --inspect=0.0.0.0:9200 -r ts-node/register ./src/app.ts`
Debugger listening on ws://0.0.0.0:9200/cd2fd09e-74f1-4120-b67c-d13b4af54e07
For help, see: https://nodejs.org/en/docs/inspector
Unable to find New Relic module configuration. A base configuration file
can be copied from /Users/zlee/Desktop/code/educational-experiment-service/packages/Upgrade/node_modules/newrelic/newrelic.js
and put at /Users/zlee/Desktop/code/educational-experiment-service/packages/Upgrade/newrelic.js or
/Users/zlee/Desktop/code/educational-experiment-service/packages/Upgrade/src/newrelic.js.
If you are not using file-based configuration, please set the environment
variable `NEW_RELIC_NO_CONFIG_FILE=true`.
Unable to find New Relic module configuration. A base configuration file
can be copied from /Users/zlee/Desktop/code/educational-experiment-service/packages/Upgrade/node_modules/newrelic/newrelic.js
and put at /Users/zlee/Desktop/code/educational-experiment-service/packages/Upgrade/newrelic.js or
/Users/zlee/Desktop/code/educational-experiment-service/packages/Upgrade/src/newrelic.js.
If you are not using file-based configuration, please set the environment
variable `NEW_RELIC_NO_CONFIG_FILE=true`.
{"v":0,"level":30,"name":"newrelic_bootstrap","hostname":"13366-zlee","pid":71702,"time":"2021-09-10T01:54:35.894Z","msg":"Using New Relic for Node.js. Agent version: 7.1.0; Node version: v14.17.6."}
{"v":0,"level":30,"name":"newrelic_bootstrap","hostname":"13366-zlee","pid":71702,"time":"2021-09-10T01:54:35.898Z","msg":"Module not enabled in configuration; not starting."}
[nodemon] clean exit - waiting for changes before restart

Solution

You don't need a newrelic configuration for development purposes. Comment out import 'newrelic/index'; in app.ts and run npm run dev

Previousnodemon exits without explanationNextNo email received for export data
๐Ÿ˜