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

GithubCalendar is no longer exported from "github-calendar" ? #161

Open
alanmontgomery opened this issue Jan 18, 2023 · 6 comments
Open

Comments

@alanmontgomery
Copy link

Hey there,

As of the new update, I was upgrading my npm package "github-calendar" to the new version ^2.3.2.

When i go to build or run my react implementation, which worked perfectly before, i'm now getting an error;

Error: 'GitHubCalendar' is not exported by node_modules/github-calendar/lib/index.js
import { GitHubCalendar } from "github-calendar";
@micisse
Copy link

micisse commented Feb 22, 2023

Hey @alanmontgomery, you can use like this

import GitHubCalendar from "github-calendar";

@alanmontgomery
Copy link
Author

Hey @alanmontgomery, you can use like this

import GitHubCalendar from "github-calendar";

Doesn't work?

Error: 'default' is not exported by node_modules/github-calendar/lib/index.js

import GitHubCalendar from "github-calendar"; ^

@micisse
Copy link

micisse commented Feb 22, 2023

@alanmontgomery It is exported well by default (screen), the problem you are experiencing must be related to your configuration, i used it today and it works. Can you create (linked) a repo with the problem you are experiencing?

Capture d’écran_2023-02-22_16-27-06

@alanmontgomery
Copy link
Author

@alanmontgomery It is exported well by default (screen), the problem you are experiencing must be related to your configuration, i used it today and it works. Can you create (linked) a repo with the problem you are experiencing?

Capture d’écran_2023-02-22_16-27-06

I can try it in a blank react project and see what happens. I know, i looked at the lib/index.js as well and it exports as { GitHubCalendar } as i originally had like you've pointed out

@IonicaBizau
Copy link
Member

Is this still a problem?

@alanmontgomery
Copy link
Author

@IonicaBizau I think so yeah

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

3 participants