Skip to content

Changing global position of Toast does not work #5597

@Psypher1

Description

@Psypher1

Environment

OS: Windows 10
Node: v22.21.1
Nitro: v2.12.9
Package Manager: PNPM v10.20.0

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.2.1

Reproduction

In app.vue do this:

<script>
const toaster = { position: "top-right", duration: 3000 };
</script>

<template>
  <UApp :toaster="toaster">
    <NuxtLayout>
      <NuxtPage />
    </NuxtLayout>
  </UApp>
</template>

Description

I am trying to change the position of my toasts to the top of the page (as per the docs), but nothing is happening.

I also get this warning in my terminal

[18:18:11]  WARN  [Vue warn]: Property "toaster" was accessed during render but is not defined on instance. at <App>

Additional context

No response

Logs

[18:18:11]  WARN  [Vue warn]: Property "toaster" was accessed during render but is not defined on instance. at <App>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting initial review and prioritizationv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions