Search code examples
javascriptnode.jsexpressdygraphs

Uncaught ReferenceError: Dygraph is not defined


I am using express.js, through my application i am rendering dygraph chart on client side. This is what my index.jade file looks like

whenever i am going on my browser the console shows this error : Uncaught ReferenceError: Dygraph is not defined

I have a another html file with same contents and it is working fine for me with no error. .I have attached the screenshot of both files here

Thanks in advance.


Solution

  • The problem is that you've done an error typing 'text/javascript'. Your code says 'text/javscript' :) Seems like just a typo mistake.