arfedulov / semantic-ui-calendar-react

Datepicker react component based on semantic-ui-react components
https://arfedulov.github.io/semantic-ui-calendar-react/
MIT License
259 stars 92 forks source link

Lots of "...has no default export" #138

Closed hallsbyra closed 5 years ago

hallsbyra commented 5 years ago

Upgraded from 0.14.3 to 0.14.4. All else remains the same. Now I get a bunch of typescript errors:


node_modules/semantic-ui-calendar-react/dist/commonjs/inputs/DateInput.d.ts:2:8 - error TS1192: Module '"./node_modules/@types/prop-types/index"' has no default export.

2 import PropTypes from 'prop-types';
         ~~~~~~~~~

node_modules/semantic-ui-calendar-react/dist/commonjs/inputs/DatesRangeInput.d.ts:2:8 - error TS1192: Module '"./node_modules/@types/prop-types/index"' has no default export.

2 import PropTypes from 'prop-types';
         ~~~~~~~~~

node_modules/semantic-ui-calendar-react/dist/commonjs/inputs/DateTimeInput.d.ts:2:8 - error TS1192: Module '"./node_modules/@types/prop-types/index"' has no default export.

2 import PropTypes from 'prop-types';
         ~~~~~~~~~

node_modules/semantic-ui-calendar-react/dist/commonjs/inputs/MonthInput.d.ts:2:8 - error TS1192: Module '"./node_modules/@types/prop-types/index"' has no default export.

2 import PropTypes from 'prop-types';
         ~~~~~~~~~

node_modules/semantic-ui-calendar-react/dist/commonjs/inputs/MonthRangeInput.d.ts:2:8 - error TS1192: Module '"./node_modules/@types/prop-types/index"' has no default export.

2 import PropTypes from 'prop-types';
         ~~~~~~~~~

node_modules/semantic-ui-calendar-react/dist/commonjs/inputs/TimeInput.d.ts:2:8 - error TS1192: Module '"./node_modules/@types/prop-types/index"' has no default export.

2 import PropTypes from 'prop-types';
         ~~~~~~~~~

node_modules/semantic-ui-calendar-react/dist/commonjs/inputs/YearInput.d.ts:2:8 - error TS1192: Module '"./node_modules/@types/prop-types/index"' has no default export.

2 import PropTypes from 'prop-types';
         ~~~~~~~~~

node_modules/semantic-ui-calendar-react/dist/commonjs/pickers/BasePicker.d.ts:2:8 - error TS1192: Module '"./node_modules/@types/react/index"' has no default export.

2 import React from 'react';
         ~~~~~

node_modules/semantic-ui-calendar-react/dist/commonjs/pickers/monthPicker/MonthRangePicker.d.ts:2:8 - error TS1192: Module '"./node_modules/@types/react/index"' has no default export.

2 import React from 'react';
         ~~~~~

node_modules/semantic-ui-calendar-react/dist/commonjs/views/BaseCalendarView.d.ts:1:8 - error TS1192: Module '"./node_modules/@types/react/index"' has no default export.

1 import React from 'react';
         ~~~~~```
arfedulov commented 5 years ago

Have you tried to set --esModuleInterop typescript compiler option to true?