react-native-builder-bob icon indicating copy to clipboard operation
react-native-builder-bob copied to clipboard

Cannot find module '*' or its corresponding type declarations.ts

Open waltermvp opened this issue 5 years ago • 1 comments

Environment

Latest npx project build im using node 14.17

Description

despite adding a library dependency to deps, peerdeps, & devDeps (in this case ramba) i still get an error when attempting to import the dep.

Reproducible Demo

https://www.dropbox.com/s/roa64r7fm7x7051/react-native-ui.zip?dl=0

waltermvp avatar Jul 17 '21 23:07 waltermvp

Have you tried to create a ts declare file? (*.d.ts) I had the same problem with expo dependencies in the example project and create a such file solved my job failing issue.

./decs.d.ts add declare module 'package-name';

Hope it could be usefull. Good luck +

remigye avatar Dec 12 '22 16:12 remigye