修复"vue3-typed-js" is imported by "xxxxxxx", but could not be resolved – treating it as an external dependency.

This commit is contained in:
Jeffrey Hsu 2024-11-17 13:52:46 +08:00
parent f23408598f
commit ef48d8e1d6
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ export default defineNuxtConfig({
},
},
build: {
transpile: ['@fortawesome/vue-fontawesome']
transpile: ['@fortawesome/vue-fontawesome', 'vue3-typed-js']
},
vite: {
css: {

View File

@ -23,7 +23,7 @@ const postsData = computed(() => {
return recentPosts.value
})
const activitiesData = computed((): IActivity<IContent>[] => {
if (!recentActivities.value) return [];
if (!Array.isArray(recentActivities.value)) return [];
return recentActivities.value.map(item => {
try {
if (item.op_type === "commit_repo")