antify / antify/database-cli

Error: Can not call cb of undefined

Open
#4 0 comments 0 reactions 1 assignee View on GitHub

@beyer-johannes is already working on this.

Since Apr 16, 2024.

bug
Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
41m
Merged PRs (30d)
2

Description

If there's a file in a configured migrations, fixtures or schema dir without exporting a default function, the error will happen.

  1. Make the error message more dx friendly for migrations and fixtures
  2. Handle this uscase for schemas different, because it can happen, that a file in schema direcotry is a schema definition but not a own schema as document in the database.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.