File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
gatsby-cli/src/structured-errors Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const errorSchema: Joi.ObjectSchema<IStructuredError> =
2727 location : Joi . object ( {
2828 start : Position . required ( ) ,
2929 end : Position ,
30- } ) ,
30+ } ) . unknown ( ) ,
3131 docsUrl : Joi . string ( ) . uri ( {
3232 allowRelative : false ,
3333 relativeOnly : false ,
Original file line number Diff line number Diff line change @@ -64,7 +64,10 @@ const transformWebpackError = (
6464
6565 if ( ! location && castedWebpackError . error ?. loc ) {
6666 if ( castedWebpackError . error . loc . start ) {
67- location = castedWebpackError . error . loc
67+ location = {
68+ start : castedWebpackError . error . loc . start ,
69+ end : castedWebpackError . error . loc . end ,
70+ }
6871 } else {
6972 location = {
7073 start : castedWebpackError . error . loc ,
You can’t perform that action at this time.
0 commit comments