fix
This commit is contained in:
parent
785b211ac2
commit
6e4db7057e
|
|
@ -168,7 +168,13 @@ const installDeps = async (
|
||||||
if (err.notes?.[0].text.startsWith("You can mark the path ")) {
|
if (err.notes?.[0].text.startsWith("You can mark the path ")) {
|
||||||
let im = err.notes?.[0].text.split('"')[1];
|
let im = err.notes?.[0].text.split('"')[1];
|
||||||
|
|
||||||
if (!im.startsWith("@")) {
|
if (
|
||||||
|
!im.startsWith(".") &&
|
||||||
|
!im.startsWith("@/") &&
|
||||||
|
!im.startsWith("app") &&
|
||||||
|
!im.startsWith("lib") &&
|
||||||
|
!im.startsWith("server")
|
||||||
|
) {
|
||||||
im = im.split("/").shift() || "";
|
im = im.split("/").shift() || "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue