B
B
bumbarash2019-02-12 23:18:41
JavaScript
bumbarash, 2019-02-12 23:18:41

ERROR TypeError: Cannot read property 'jquery' of undefined how to win?

I am doing a study project. Stupidly according to the instructions. I'm trying to display errors using the materialize-css library. I work with Angular.
I connect through a static method in the class.

declare var M
export class MaterialService {
  static toast(message: string) {
    M.toast({html: message});
  }
}

Then I use it in the required component.
An error appears with the track as in the picture
5c63290292050155599309.png
Maybe someone will immediately see some of my jambs?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2019-02-12
@bumbarash

At the end of the line with an error is written where it occurred.
And you can click on this link.
You have some variable not defined there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question