Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type information can not be found #32

Closed
mgrandrath opened this issue Mar 5, 2024 · 3 comments · Fixed by #33
Closed

Type information can not be found #32

mgrandrath opened this issue Mar 5, 2024 · 3 comments · Fixed by #33
Labels
bug Something isn't working

Comments

@mgrandrath
Copy link

When building the package the declaration file dist/index.d.mts is created. However package.json states "typings": "dist/index.d.ts" (code). Because of this mismatch (.mts vs .ts) TypeScript fails to find the type information and gives the error Cannot find module 'react-image-turntable' or its corresponding type declarations.

@nerdyman
Copy link
Owner

nerdyman commented Mar 6, 2024

Whoops, thanks for raising this @mgrandrath. I'll publish a fix release to resolve this.

@nerdyman nerdyman added the bug Something isn't working label Mar 6, 2024
@densekernel
Copy link

densekernel commented Mar 26, 2024

This issue also occurs with react-scripts test:

 FAIL  src/App.test.js
  ● Test suite failed to run

    Cannot find module 'react-image-turntable' from 'src/App.js'

Component is imported like import { ReactImageTurntable } from "react-image-turntable";

@nerdyman
Copy link
Owner

nerdyman commented Apr 8, 2024

image

This has been resolved in 3.1.2

https://arethetypeswrong.github.io/?p=react-image-turntable%403.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants