From 223134907a9f369a4584caa6b77079460f845032 Mon Sep 17 00:00:00 2001 From: Alexander Sorokin <10401817+brawaru@users.noreply.github.com> Date: Sat, 21 Oct 2023 02:40:24 +0200 Subject: [PATCH 1/2] Add missing alias for the lib index in TSConfig --- tsconfig.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index ab504927d..d40e35b5e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,8 +20,10 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, + "paths": { - "@/*": ["./lib/*"] + "@/*": ["./lib/*"], + "@": ["./lib/index.ts"] } }, "include": ["lib/**/*.js", "lib/**/*.ts", "lib/**/*.d.ts", "lib/**/*.tsx", "lib/**/*.vue"], From 8a5999607feefab5e739d18562048c95b60a3947 Mon Sep 17 00:00:00 2001 From: Alexander Sorokin <10401817+brawaru@users.noreply.github.com> Date: Sat, 21 Oct 2023 02:40:51 +0200 Subject: [PATCH 2/2] Fix relativeTime dayjs plugin import --- lib/components/base/ProjectCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/base/ProjectCard.vue b/lib/components/base/ProjectCard.vue index 6ce31739a..35f660f9a 100644 --- a/lib/components/base/ProjectCard.vue +++ b/lib/components/base/ProjectCard.vue @@ -81,7 +81,7 @@ import { } from '@' import dayjs from 'dayjs' -import relativeTime from 'dayjs/plugin/relativeTime' +import relativeTime from 'dayjs/plugin/relativeTime.js' dayjs.extend(relativeTime)