node_modules/react-select/dist/declarations/src/Select.d.ts:1:8 - error TS1259: Module '"/.../node_modules/@types/react/index"' can only be default-imported using the 'esModuleInterop' flag
1 import React, { Component, FocusEventHandler, FormEventHandler, KeyboardEventHandler, MouseEventHandler, ReactNode, RefCallback, TouchEventHandler } from 'react';
~~~~~
node_modules/@types/react/index.d.ts:65:1
65 export = React;
~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
Found 1 error.```
Hi,
After upgrading to
react-select@5I get an error fromtscwhen building unless I enableesModuleInteropin my owntsconfig.json. This should not be required.The error seems to be in
Select.d.ts: