Skip to content

[Snackbar] TypeError: _props.toast is undefined when import single component #736

@manhnt9

Description

@manhnt9

Description

When importing with

import Snackbar from 'react-md/lib/Snackbars/Snackbar';

browser logs this error and the page doesn't load (blank)

TypeError: _props.toast is undefined

but this bug isn't presented if I use

 import { Snackbar } from 'react-md';

then the page loads and snackbar emits toast sucessfully.

Version

  • React - 15.5.4
  • React-MD - 1.3.0
  • Browser Firefox 59.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions