Skip to content

Unable to set toast options in nuxt project  #155

@bhaskar-nair2

Description

@bhaskar-nair2

Versions

  • 1.0

Describe the bug

When importing import { POSITION, TYPE } from 'vue-toastification' in the nuxt.config.js to setup options.position and type-based-settings, nuxt throws fatal error HTMLElement is not defined and the app is killed.

Expected behavior

Should be able to setup options in toast

Steps to reproduce

Reproduction demo.
Steps:

  1. Install normally
  2. Set up plugin
  3. In your 'nuxt.config.js` file add

import { POSITION, TYPE } from 'vue-toastification'
and

toast:{
 position: POSITION.BOTTOM_RIGHT
}

4 Run npm run dev

Your Environment

  • Device: PC
  • OS: Ubuntu 20
  • Browser: Chrome
  • Version: 87

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions