You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \LogicException(sprintf('The path "%s" of the package "%s" cannot be found in any asset map paths.', $requireOptions->path, $requireOptions->packageName));
337
-
}
333
+
if (!$this->findAsset($path)) {
334
+
thrownew \LogicException(sprintf('The path "%s" of the package "%s" cannot be found: either pass the logical name of the asset or a relative path starting with "./".', $requireOptions->path, $requireOptions->packageName));
thrownew \LogicException(sprintf('The path "%s" of the package "%s" cannot be found in any as
9E7A
set map paths.', $entry->path, $entry->importName));
@@ -418,7 +421,7 @@ private function addImplicitEntries(ImportMapEntry $entry, array $currentImportE
418
421
return$currentImportEntries;
419
422
}
420
423
421
-
if (!$asset = $this->assetMapper->getAsset($entry->path)) {
424
+
if (!$asset = $this->findAsset($entry->path)) {
422
425
// should only be possible at this point for root importmap.php entries
423
426
thrownew \InvalidArgumentException(sprintf('The asset "%s" mentioned in "importmap.php" cannot be found in any asset map paths.', $entry->path));
424
427
}
@@ -498,7 +501,7 @@ private function findEagerEntrypointImports(string $entryName): array
498
501
thrownew \InvalidArgumentException(sprintf('The entrypoint "%s" is a remote package and cannot be used as an entrypoint.', $entryName));
thrownew \InvalidArgumentException(sprintf('The path "%s" of the entrypoint "%s" mentioned in "importmap.php" cannot be found in any asset map paths.', $rootImportEntries->get($entryName)->path, $entryName));
504
507
}
@@ -529,4 +532,22 @@ private static function getImportMapTypeFromFilename(string $path): ImportMapTyp
0 commit comments