Build fails with unclear error message: "Error"
dekim24 opened this issue · 1 comments
dekim24 commented
I can't point to an actual Github repo / app (private repo) but you should be able to reproduce by doing the following:
- Install the dependency
@mapbox/fusspot@0.4.0
- Try to run the plugin.
Actual behavior: The plugin errors out (expected) but the message shown is the very unclear string Error
Desired behavior: The error message is formatted properly: License "BSD 2-Clause" for @mapbox/fusspot@0.4.0 is not a valid SPDX expression!
I figured out the error message that wasn't being shown properly by going into into node_modules and add a console.log(message);
here:
I'm investigating further to try to figure out why this happened - wondering if there's something going wrong between and when an error in this particular format is in the array.