question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Materialize.toast is not defined

See original GitHub issue

How can I use Materialize.toast without install react-materialize? I’ve already added materialize css and js to my project, works great, but if I try to execute a toast, I get an error

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

18reactions
dennisjacommented, Feb 1, 2018

use window.Materialize.toast("My toast", 4000)

3reactions
alextrasterocommented, Sep 8, 2017

This doesn’t seem like a react-materialize issue. But it seems you might have issues with react-create-app

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught ReferenceError: M is not defined in materialize
I am trying to use Toast Messages in Materialize and django but I keep getting an error: Uncaught ReferenceError: M is not defined....
Read more >
Toasts - Materialize
Materialize provides an easy way for you to send unobtrusive alerts to your users through toasts. These toasts are also placed and sized...
Read more >
Materialize Toast - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >
Dialogs - Materialize
Materialize provides an easy way for you to send unobtrusive alerts to your users through toasts. These toasts are also placed and sized...
Read more >
Materialize CSS error message
Materialize not defined · Issue #5254 · Dogfalo/materialize · GitHub, The most simple solution but the label will not be updated with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found