Hi all,

When I view my app in anything except IE8 it works fine, no JS errors. When I 
view it in IE8 I get the infamous
"'React' is undefined" and "Object doesn't support this property or method".

According to http://facebook.github.io/react/docs/working-with-the-browser.html 
you need es5-shim and es5-sham which are both included.

Attached is the HTML - any newbie mistakes here?

[code]
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>QFI Health Jonah</title>
    <link href="lib/bootstrap-3.2.0/css/bootstrap.min.css" rel="stylesheet" 
type="text/css">
    <link href="css/dashboard.css" rel="stylesheet" type="text/css">
    <link href="css/out/health.css" rel="stylesheet" type="text/css">
    <script src="lib/es5-shim-4.0.3/es5-shim.min.js" 
type="text/javascript"></script>
    <script src="lib/es5-shim-4.0.3/es5-sham.min.js" 
type="text/javascript"></script>
    <!--[if !IE 8]><!-->
      <link 
href="http://maxcdn.bootstrapcdn.com/bootlint/0.4.0/bootlint.min.js"; 
rel="stylesheet" type="text/css">
    <!--<![endif]-->
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media 
queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script 
src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js";></script>
      <script 
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js";></script>
   <![endif]-->
    <script src="http://fb.me/react-0.11.1.js"; type="text/javascript"></script>
    <script src="out/goog/base.js" type="text/javascript"></script>
    <script src="out/main.js" type="text/javascript"></script>
    <script 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"; 
type="text/javascript"></script>
    <script src="lib/bootstrap-3.2.0/js/bootstrap.min.js" 
type="text/javascript"></script>
  </head>
  <body>
    <div id="my-app"></div>
    <script type="text/javascript">goog.require('health.main');</script>
  </body>
</html>
[/code]

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to