If a name_mapper
points to a non-existent file, it should tell user that the mapped path doesn't exist (instead of the original path)
#7427
Labels
Flow version: 0.91.
Expected behavior
Error should say:
Actual behavior
Related: #3889
Another example:
If
empty/object
doesn't exist, there is no message to say that is the cause ofCannot resolve module 'debug'
error.There are many cases where name_mapper breaks things by the user wouldn't know. Try this to show the errors that are generated:
Then you get errors like this:
But the cause is that the name_mapper has mapped to a file that doesn't export anything.
Related
module.name_mapper
- bug or user error? #1090The text was updated successfully, but these errors were encountered: