question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript compliation error (has no exported member: ts2305)

See original GitHub issue

What 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:

  1. Have existing TypeScript project
  2. Upgrade from react-admin 3.7 -> 3.10
  3. rm -rf node_modules
  4. yarn
  5. 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:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
vikericommented, Nov 13, 2020

My bad, I had marked the ra-ui-materialui package as untyped…

0reactions
vikericommented, Nov 13, 2020

Very strange, some symbols are found while others aren’t. Seems to mostly be an issue with the components: bild

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found