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"],