Closed chriscollins405 closed 4 years ago
So im stuck, and have used this fiddle to test....
https://jsfiddle.net/26qou094/1/
I'm including the script tag at the top
Then I have this....
import { RRule, RRuleSet, rrulestr } from 'rrule' const rule = new rrule.RRule({ freq: RRule.WEEKLY, interval: 5, byweekday: [RRule.MO, RRule.FR], dtstart: new Date(Date.UTC(2012, 1, 1, 10, 30)), until: new Date(Date.UTC(2012, 12, 31)) }); Which returns....
Uncaught TypeError: Failed to resolve module specifier "rrule". Relative references must start with either "/", "./", or "../"
Or i try this....
const rule = new rrule.RRule({ freq: RRule.WEEKLY, interval: 5, byweekday: [RRule.MO, RRule.FR], dtstart: new Date(Date.UTC(2012, 1, 1, 10, 30)), until: new Date(Date.UTC(2012, 12, 31)) }); and get...
Uncaught ReferenceError: RRule is not defined
What am I doing wrong?
Fixed it. https://jsfiddle.net/cpzeqk4r/
So im stuck, and have used this fiddle to test....
https://jsfiddle.net/26qou094/1/
I'm including the script tag at the top
Then I have this....
import { RRule, RRuleSet, rrulestr } from 'rrule' const rule = new rrule.RRule({ freq: RRule.WEEKLY, interval: 5, byweekday: [RRule.MO, RRule.FR], dtstart: new Date(Date.UTC(2012, 1, 1, 10, 30)), until: new Date(Date.UTC(2012, 12, 31)) }); Which returns....
Uncaught TypeError: Failed to resolve module specifier "rrule". Relative references must start with either "/", "./", or "../"
Or i try this....
const rule = new rrule.RRule({ freq: RRule.WEEKLY, interval: 5, byweekday: [RRule.MO, RRule.FR], dtstart: new Date(Date.UTC(2012, 1, 1, 10, 30)), until: new Date(Date.UTC(2012, 12, 31)) }); and get...
Uncaught ReferenceError: RRule is not defined
What am I doing wrong?