Typescript compliation error (has no exported member: ts2305)
See original GitHub issueWhat you were expecting: TypeScript compliation without errors
What happened instead: Complier error:
Module '"../../../node_modules/react-admin/lib"' has no exported member 'List'.ts(2305)
Steps to reproduce:
- Have existing TypeScript project
- Upgrade from react-admin 3.7 -> 3.10
rm -rf node_modules
yarn
- Compile project:
yarn start
Related code:
import { List, Datagrid, TextField } from 'react-admin'
Other information:
Environment
- React-admin version: 3.10.0
- Last version that did not exhibit the issue (if applicable): 3.7
- React version: 16.9 (Also tried 17.0 with same error) (using create-react-app)
- Browser: Brave
- Stack trace (in case of a JS error):
Module '"../../../node_modules/react-admin/lib"' has no exported member 'List'.ts(2305)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to solve the "module has no exported member" error?
I want to be able to reference dependencies so that they compile to a single file in order. If I add "module": "system"...
Read more >Module has no exported member error in TypeScript
The error "Module has no exported member" occurs when we try to import a member that doesn't exist in the specified module. To...
Read more >Issues with cdktf: Build AWS Infrastructure with TypeScript
... to compile TypeScript: main.ts(3,23): error TS2305: Module '"./.gen/providers/aws"' has no exported member 'Instance'. at createTSError ...
Read more >[Solved] Error TS2305: Module '”{FilePath}/app.component ...
The usual reason behind the error2305: Module Has No Exported Member is the missing export class in your component file that you try...
Read more >module '"react-router-dom"' has no exported member ...
I'm getting the following error when I attempt to compile an executor. node_modules/@types/react-router-dom/index.d.ts: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My bad, I had marked the
ra-ui-materialui
package as untyped…Very strange, some symbols are found while others aren’t. Seems to mostly be an issue with the components: