Skip to content

loadNodeModules() should be more clear about what went wrong #143

@krainboltgreene

Description

@krainboltgreene

I had an error loading a library, but all it told me is that it couldn't resolve the module. That's fine, but the real issue is that the package's main file didn't exist.

Here's some payload information:

{ x: 'snabbdom-view',
  start: '/Users/krainboltgreene/Code/krainboltgreene/deushack/source/client/cycle',
  dirs: [] }

We can definitely make this better. We can say all the directories we looked in, what exact file we;'re looking for (in this case main) and then do some reading to show the user that it's the package;'s fault.

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