Comments (3)
I'm getting the same issue. I can't the primary examples to work (even after fixing the missing commas).
_datebook.ICalendar is not a constructor
Datebook: 2.0.3 from NPM
Parcel: 1.12.3
I can however generate URLs/iCal using the Calendars static methods:
import Calendars from 'datebook/src/utils/calendars.js';
const opts = {
title: 'Happy Hour',
location: 'The Bar, New York, NY',
description: "Let's blow off some steam from our weekly deployments to enjoy a tall cold one!",
start: '20190704T190000',
end: '20190704T210000',
recurrence: {
frequency: 'WEEKLY',
interval: 2,
},
};
const url = Calendars.getMicrosoftCalendarUrl(opts);
console.log('url: ', url);
which is very cool.
from datebook.
Hi there, I get this error when trying to create a new Calendar Object.
It happens with all of the Calendars (ical, google, outlook, yahoo)It will throw an error like this:
GoogleCalendar is not a constructor
I'm using Angular 7.2.14
Datebook 1.3.5
same problem here. did you find any solution to this issue?
from datebook.
This library has been updated to export each calendar type individually; the import usage would now be:
import { ICalendar } from 'datebook'
import { GoogleCalendar } from 'datebook'
import { YahooCalendar } from 'datebook'
import { OutlookCalendar } from 'datebook'
import { ICalendar } from 'datebook'
Import issues have been fixed as of v4.0.0.
from datebook.
Related Issues (20)
- [Question] How do I add linebreaks within the description field? HOT 1
- Please document the `ICSAlarm.action` property
- ICS file generator not escaping special characters
- Add support for uid and status properties HOT 1
- Angular 13 + jest v27 incompatibility HOT 3
- Simple html example showing which files in the distribution need to be referenced HOT 2
- .ics file's RRULE doesn't contain UNTIL parameter when setting it up in config object HOT 2
- Recurrence not working in Outlook Online Calendar HOT 2
- Broken links in documentation
- TypeError: Cannot read properties of undefined (reading 'length') HOT 2
- In ios download not working HOT 8
- How to use with unpkg?
- Invalid ICS code
- Export as ES module HOT 1
- Syntax Error when building with Sveltekit HOT 7
- Types are in wrong directory
- Add organizer property to ICalendar
- Lines not delimited by CRLF sequence HOT 1
- adding METHOD before BEGIN
- Outlook office.com compose link HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datebook.