* Returns an error object indicating that the specified import is not defined. * @param {string} specifier - The import specifier that is not defined. * @param {URL} packageJSONUrl - The URL of the package.json file, or null if not available. * @param {string | URL | undefined} base - The base UR
(specifier, packageJSONUrl, base)
| 299 | * @returns {ERR_PACKAGE_IMPORT_NOT_DEFINED} - The error object. |
| 300 | */ |
| 301 | function importNotDefined(specifier, packageJSONUrl, base) { |
| 302 | return new ERR_PACKAGE_IMPORT_NOT_DEFINED( |
| 303 | specifier, packageJSONUrl && fileURLToPath(new URL('.', packageJSONUrl)), |
| 304 | fileURLToPath(base)); |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Returns an error object indicating that the specified subpath was not exported by the package. |
no test coverage detected
searching dependent graphs…