Skip to content

Throw an error during build operation #1

Open
@AxiosLeo

Description

@AxiosLeo
npm run bash

Error Info:

> [email protected] build
> vue-tsc --noEmit && vite build

src/layouts/Global/GlobalSetup.vue:10:20 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ "--global-checked-color": string; "--global-primary-color": string; "--global-normal-color": string; "--global-danger-color": string; "--global-warm-color": string; }'.
  No index signature with a parameter of type 'string' was found on type '{ "--global-checked-color": string; "--global-primary-color": string; "--global-normal-color": string; "--global-danger-color": string; "--global-warm-color": string; }'.

10           v-model="appStore.themeVariable[themeVariableName]"
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error in src/layouts/Global/GlobalSetup.vue:10

My platform info:

Darwin 21.5.0 arm64
Node.JS: 16.15.0
V8: 9.4.146.24-node.20
CPU: Apple M1 Max × 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions