Bloggify / github-calendar

:bar_chart: Embed your GitHub calendar everywhere.
https://bloggify.github.io/github-calendar/example/
MIT License
1.22k stars 213 forks source link

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

Open alanmontgomery opened 1 year ago

alanmontgomery commented 1 year ago

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 commented 1 year ago

Hey @alanmontgomery, you can use like this

import GitHubCalendar from "github-calendar";
alanmontgomery commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

@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 commented 6 months ago

Is this still a problem?

alanmontgomery commented 6 months ago

@IonicaBizau I think so yeah