This commit is contained in:
Rizky 2024-05-15 12:40:29 +07:00
parent 785b211ac2
commit 6e4db7057e
3 changed files with 8 additions and 2 deletions

View File

@ -168,7 +168,13 @@ const installDeps = async (
if (err.notes?.[0].text.startsWith("You can mark the path ")) {
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() || "";
}

Binary file not shown.

File diff suppressed because one or more lines are too long