I am having trouble integrating the library https://github.com/jakubroztocil/rrule into my website.
Whenever I try to do so, I encounter the error: Uncaught SyntaxError: Unexpected token {
I have attempted the following:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://jakubroztocil.github.io/rrule/dist/es5/rrule-tz.min.js"></script>
<script>
$(document).ready(function(){
import { RRule, RRuleSet, rrulestr } from 'rrule'
alert(rrulestr('DTSTART:20120201T023000Z\nRRULE:FREQ=MONTHLY;COUNT=5')
)
});
</script>
</head>
<body>
</body>
</html>