TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Module 'XXX' has no exported member 'xxx'

Open OldManMeta opened this issue 2 years ago • 0 comments

5000 + Bugs - clearly filling in all the stuff has very little effect, so ignoring that noise. Impossible to search effectively as well.

I'm almost positive that someone has already filled this - but you never know.

I've seen this issue a lot over the last several months.

Not sure if it's a consistency thing, because for me it happens mainly with only some specific packages, and I thought I may mention that, if it helps repro or remove that as a culprit.

One of those packages that causes problems is :

https://github.com/pmndrs/drei

Create a really simple solution and add references to things like Grid, PointerLockControls and several others - they will show the error. In another package, I've just captured the images of it occuring:

https://github.com/pmndrs/react-three-rapier

Here I am using the Debug module which is clearly exported in the Dist:

image

Yet, here we see the error: image

The only way to resolve this at the moment is to create a direct reference:

import { Debug} from "@react-three/rapier/dist/declarations/src/components/Debug";

Is this something to do with the way the original module is declared and exported i.e. MemoExotic ?

Leave this with you and hope it helps.

OldManMeta avatar May 03 '23 09:05 OldManMeta