What you were expecting:
No TS error
What happened instead:
TS error
Steps to reproduce:
Related code:
import { Create } from 'react-admin';
Other information:

Environment
Migration to TypeScript is ongoing but not ready yet (see https://marmelab.com/blog/2018/10/18/react-admin-2-4.html). It will take months. Watch the Releases page to be informed when it's ready. In the meantime, disable type checking for that lib.
Part of my tsconfig.json:
{
"compilerOptions": {
"allowJs": true
}
}
I've no compiler errors when importing my js code inside ts module.
I guess the problem is not that react-admin is not fully migrated to TS, but that TS is trying to import from node_modules/react-admin/lib instead of node_modules/react-admin/src
@komik966 I have that set to true already. And yes, that's exactly the issue...
@fzaninotto Hey, me again. Maybe it's an idea to give that a go? I know, I know we had this discussion a couple of years ago when you closed another issue of mine. But I do think this could help.
For now my solution is:
react-app-env.d.ts:
// / <reference types="react-scripts" />
declare module 'react-admin';
But with this configuration PhpStorm not provides autocompletion for imports from react-admin.
Most helpful comment
For now my solution is:
react-app-env.d.ts:But with this configuration PhpStorm not provides autocompletion for imports from
react-admin.