Open
Description
Summary:
i am using react-modal 3.9.1 with typescript: 3.3.3 with nextjs 9 and when importing ReactModal
it is giving me an error saying "ReferenceError: exports is not defined" i also used @types/react-modal:3.8.2. on a sandbox it is working without issue though. But still there is error saying Module '"/sandbox/node_modules/@types/react-modal/index"' has no default export.ts(1192)
1 | "use strict";
2 |
> 3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
5 | });
6 | exports.bodyOpenClassName = exports.portalClassName = undefined;
Steps to reproduce:
- Install React-modal latest veersion on react typescript project
- Import
ReactModal from 'react-modal'
- Call
<ReactModal>
in render method
Expected behavior:
should work without issue
Link to example of issue:
https://codesandbox.io/embed/tender-leavitt-260ul