Skip to content

Using create react app, the errors using babel-macros are very cryptic. #79

@lifeiscontent

Description

@lifeiscontent
  • babel-plugin-macros version: whatever react-scripts@beta is using
  • node version: v8.11.3
  • npm (or yarn) version: 6.2.0

Relevant code or config

when using a macro that loads files from the file system, such as graphql.macro it'll just give an error saying Failed to compile which is pretty cryptic.

What you did:

Load a file at an invalid path

What happened:

Failed to compile
./src/screens/Todos/List.js

Reproduction repository:

Problem description: cryptic error messages

Suggested solution: if its possible, make errors a bit more helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions