react-scheduler / react-big-schedule

React Big Schedule is a powerful and intuitive scheduler and resource planning solution built with React.
https://react-big-schedule.vercel.app/
MIT License
91 stars 20 forks source link

Version 4.4.3 is broken #176

Open jovana opened 14 hours ago

jovana commented 14 hours ago

Checklist

Describe the bug

Attempted import error: 'SchedulerData' is not exported from 'react-big-schedule' (imported as 'SchedulerData'). ERROR in ./src/cointainers/booking/views/booking.planboard.view.js 28:26-39 export 'SchedulerData' (imported as 'SchedulerData') was not found in 'react-big-schedule' (module has no exports)

ERROR in ./src/cointainers/booking/views/booking.planboard.view.js 28:59-70 export 'DATE_FORMAT' (imported as 'DATE_FORMAT') was not found in 'react-big-schedule' (module has no exports)

ERROR in ./src/cointainers/booking/views/booking.planboard.view.js 28:73-86 export 'ViewType' (imported as 'ViewType') was not found in 'react-big-schedule' (module has no exports)

ERROR in ./src/cointainers/booking/views/booking.planboard.view.js 41:14-26 export 'ViewType' (imported as 'ViewType') was not found in 'react-big-schedule' (module has no exports)

ERROR in ./src/cointainers/booking/views/booking.planboard.view.js 46:14-27 export 'ViewType' (imported as 'ViewType') was not found in 'react-big-schedule' (module has no exports)

ERROR in ./src/cointainers/booking/views/booking.planboard.view.js 51:14-28 export 'ViewType' (imported as 'ViewType') was not found in 'react-big-schedule' (module has no exports)

ERROR in ./src/cointainers/booking/views/booking.planboard.view.js 56:14-30 export 'ViewType' (imported as 'ViewType') was not found in 'react-big-schedule' (module has no exports)

ERROR in ./src/cointainers/booking/views/booking.planboard.view.js 61:14-27 export 'ViewType' (imported as 'ViewType') was not found in 'react-big-schedule' (module has no exports)

ERROR in ./src/cointainers/booking/views/booking.planboard.view.js 588:43-52 export 'Scheduler' (imported as 'Scheduler') was not found in 'react-big-schedule' (module has no exports)

Reproduction Link/Code

na

Steps to reproduce

yarn add react-big-schedule

Running this:

import React, { useEffect, useReducer, useState } from 'react';
import { Scheduler, SchedulerData, ViewType, DATE_FORMAT, } from 'react-big-schedule';
import "react-big-schedule/dist/css/style.css";

const PlanBoardView = ({
    ...props
}) => {

return (
<Scheduler/>
);
};

Operating System

Mac

Browser

Chromium

React version

18.3.1

react-big-schedule version

4.4.3

Additional Information

4.4.1 is working. 4.4.2 has the same issue.

ansulagrawal commented 13 hours ago

I will try and let you know

ansulagrawal commented 12 hours ago

@jovana try uninstalling the library and install it again it will work as its working I have tested in codepen and stackblitz.

Stackblitz: https://stackblitz.com/edit/vitejs-vite-rdpjba

Codepen: https://codesandbox.io/p/sandbox/vftv8y

Codesanbox ss

ansulagrawal commented 12 hours ago

Yes 4.4.2 is not working as I added type: module in package.json and forgot to update in babel file. That was the fixed did in 4.4.3