title: Implement RRule using javascript rrule.min.js
body: <p>I am trying to include the library <a href="https://github.com/jakubroztocil/rrule" rel="nofollow noreferrer">https://github.com/jakubroztocil/rrule</a> to my webpage.</p>
  
  <p>But I recieve the error: Uncaught SyntaxError: Unexpected token {</p>
  
  <p>I have tried with</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;script src="https://jakubroztocil.github.io/rrule/dist/es5/rrule-tz.min.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  $(document).ready(function(){
  
  import { RRule, RRuleSet, rrulestr } from 'rrule'
  alert(rrulestr('DTSTART:20120201T023000Z\nRRULE:FREQ=MONTHLY;COUNT=5')
  )
  
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>