Bloggify/github-calendar

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

alanmontgomery opened this issue · 6 comments

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";

Hey @alanmontgomery, you can use like this

import GitHubCalendar from "github-calendar";

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"; ^

@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 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

Is this still a problem?

@IonicaBizau I think so yeah