Better error message if file is missing
- Langage dominant
- JavaScript
- Étoiles
- 6.9k
- Forks
- 1.8k
- Merge moyen
- 44 min
- PR mergées (30 j)
- 1
Description
It took me a while to realize what was wrong: the file I tried to test was missing, because I forgot to build my library before I ran `npm size-limit`.
I got following error message:
```
✖ Adding to empty webpack project
ERROR WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
```
It would be a nice UX improvements when the error could be catched and a "human-readable" error message would be displayed instead. Something like: "Could not test `{{name}}` because file '{{path}}' is missing"
used package-versions:
```
@size-limit/preset-app: ^4.10.2
@size-limit/webpack: 4.10.2
size-limit: 4.10.2
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.