Skip to content

新拉下来的项目不能正常运行 #5

@myzjx

Description

@myzjx

项目依赖缺少lodash
add package: pnpm add lodash

项目依赖缺失
位置:src\store\plugin\persist.ts
报错:import { isObject } from '@vue/shared'
-- 找不到模块“@vue/shared”或其相应的类型声明。
fix: 删除 import { isObject } from '@vue/shared'

add: 增加以下代码在文件中
const opt = Object.prototype.toString

export function isObject(obj: any): obj is { [key: string]: any } {
return opt.call(obj) === "[object Object]"
}

位置:src\components\PasswordStrong.vue
报错:import { reactive } from '@vue/reactivity'
--找不到模块“@vue/reactivity”或其相应的类型声明。
fix: 删除import { reactive } from '@vue/reactivity'
在下一行增加import { watch, ref, reactive } from 'vue'

其它地方如果@VUE报错,也是类似方法

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions