Skip to content

fix: auto-create data/ directory in DataRecorder to prevent ENOENT on fresh clone #18

@Suyog241005

Description

@Suyog241005

Problem

Running npm run start on a fresh clone fails with:

Error: ENOENT: no such file or directory, open './data/initialTopicRepoData-.csv'

This happens because dataRecorder.js tries to write a CSV file to ./data/ which doesn't exist in the repo.

Steps to Reproduce

  1. Clone the repo fresh
  2. Set up .env with GITHUB_TOKEN and TOPIC
  3. Run npm run start inside projects/initial-data/
  4. Observe the crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions