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
Fix undefined variable $packagePath in mix:watch error (#485)
When the package is not present in package.json, the correct error is not thrown because $packagePath not exists.
Co-authored-by: Luke Towers <[email protected]>
Copy file name to clipboardexpand all lines: modules/system/console/MixWatch.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public function handle(): int
45
45
$relativeMixJsPath = $package['mix'];
46
46
if (!$this->canCompilePackage($relativeMixJsPath)) {
47
47
$this->error(
48
-
sprintf('Unable to watch "%s", %s was not found in the package.json\'s workspaces.packages property. Try running mix:install first.', $name, $packagePath)
48
+
sprintf('Unable to watch "%s", %s was not found in the package.json\'s workspaces.packages property. Try running mix:install first.', $name, $relativeMixJsPath)
0 commit comments