Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Browser Console Warning: definePageMeta() is a compiler-hint helper that is only usable inside the script block of a single file component which is also a page. #26377

@XioDone

Description

@XioDone

Environment

Nuxt Version: 3.11.1

Reproduction

https://stackblitz.com/edit/nuxt-starter-yd5hhb?file=pages%2Findex.client.vue

Describe the bug

When defining Client-Only Pages, Received this warning.
definePageMeta() is a compiler-hint helper that is only usable inside the script block of a single file component which is also a page. Its arguments should be compiled away and passing it at runtime has no effect.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions