Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'googleapi-key.json' #20

Open
mdmasumbillah opened this issue Jun 13, 2018 · 1 comment
Open

Error: Cannot find module 'googleapi-key.json' #20

mdmasumbillah opened this issue Jun 13, 2018 · 1 comment

Comments

@mdmasumbillah
Copy link

mdmasumbillah commented Jun 13, 2018

My calendar settings.js config

// Sample CalendarAPI settings
const SERVICE_ACCT_ID = '[email protected]';
const key = require('googleapi-key.json').private_key;
const TIMEZONE = 'UTC+06:00';
const CALENDAR_ID = {
'primary': '[email protected]',
'calendar-1': '[email protected]',
'calendar-2': '[email protected]'
};

Please help me.

@the-simian
Copy link

require('googleapi-key.json')

may need to be require('./googleapi-key.json') so it looks for a local file. Do you have your .json file there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants