Closed mgrandrath closed 3 months ago
Whoops, thanks for raising this @mgrandrath. I'll publish a fix release to resolve this.
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";
When building the package the declaration file
dist/index.d.mts
is created. Howeverpackage.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 errorCannot find module 'react-image-turntable' or its corresponding type declarations
.