Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Cannot find name defineProps ts error #102

Open
Labels
@jacekkarczmarczyk

Description

@jacekkarczmarczyk

In a vue2 + vite + unplugin-vue2-script-setup project i have a ts error (not eslint) on build thatCannot find name defineProps/defineEmits

Here's project's tsconfighttps://github.com/jacekkarczmarczyk/rachunek/blob/master/tsconfig.json and example usage of definePropshttps://github.com/jacekkarczmarczyk/rachunek/blob/master/src/components/BillForm/BillForm.vue#L163 (that's not a minimal repro, but I guess just the settings files are imporant, if you want a minimal repro though let me know)

To reproduce the issue runyarn build

screenshot

Error can be supressed with// @ts-ignore but that doesn't sound like a valid solution. Another option is to add .d.ts files withdefineProps declaration but I think that should be rather provided by the lib (or maybe it is but can't find anything)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp