File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/openapi-generator/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -528,7 +528,11 @@ export function parseCodecInitializer(
528528 // schema.location might be a package name -> need to resolve the path from the project types
529529 const path = project . getTypes ( ) [ schema . name ] ;
530530 if ( path === undefined )
531- return errorLeft ( `Cannot find module '${ schema . location } ' in the project` ) ;
531+ return errorLeft (
532+ `Cannot find external codec '${ schema . name } ' from module '${ schema . location } '. ` +
533+ `To fix this, add the codec definition to your codec config file. ` +
534+ `See: https://github.com/BitGo/api-ts/tree/master/packages/openapi-generator#4-defining-custom-codecs` ,
535+ ) ;
532536 refSource = project . get ( path ) ;
533537 if ( refSource === undefined ) {
534538 return errorLeft ( `Cannot find '${ schema . name } ' from '${ schema . location } '` ) ;
You can’t perform that action at this time.
0 commit comments