From 9932fe5055e012f1b3a954287ad38a34f46f4bc7 Mon Sep 17 00:00:00 2001 From: Sasha Sorokin <10401817+brawaru@users.noreply.github.com> Date: Sat, 21 Oct 2023 05:34:02 +0200 Subject: [PATCH] Fix relativeTime dayjs plugin import (#111) --- lib/components/base/ProjectCard.vue | 2 +- tsconfig.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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) 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"],