jquery - can't find variable '$' on compute engine -
i created trial google compute engine, , finished setting experimental node web app i've been working on. app works fine on computer, on compute engine, complains missing $
jquery variable.
my index.ejs file looks this:
<html> <!-- header stuff --> <body> <!-- body stuff --> <script src='https://fb.me/react-0.14.5.js'></script> <script src='https://fb.me/react-dom-0.14.5.js'></script> <script src='http://code.jquery.com/jquery-2.1.3.js'></script> <script src="/javascripts/bundle.js"></script> </body> </html>
jquery linked before bundle.js
the problem in bundle.js file (which browserify bundle used bundle react components, 1 of uses jquery ajax $.ajax
error is)
link app running on compute engine: https://8080-dot-2015515-dot-devshell.appspot.com/?authuser=0
look @ console error.
again, works fine on machine, not sure why complaining on compute engine.
have checked compute engine code? had problem elsewhere , jquery had been set non conflict mode, see here: https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/ means may need reference $g... rather $. if can check source code, may find correct prefix there.
Comments
Post a Comment