UNPKG

react-native-flip

Version:
36 lines (30 loc) 846 B
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ 'use strict'; const {DuplicateHasteCandidatesError} = (require('jest-haste-map') .ModuleMap: any); class AmbiguousModuleResolutionError extends Error { fromModulePath: string; // $FlowFixMe[value-as-type] hasteError: DuplicateHasteCandidatesError; constructor( fromModulePath: string, // $FlowFixMe[value-as-type] hasteError: DuplicateHasteCandidatesError, ) { super( `Ambiguous module resolution from \`${fromModulePath}\`: ` + hasteError.message, ); this.fromModulePath = fromModulePath; this.hasteError = hasteError; } } module.exports = AmbiguousModuleResolutionError;