flat-list-mvcp: Cannot find module
I am sorry if that seems like a silly thing to ask, but I have tried all sorts of things to make the import work with no success:
Cannot find module '@stream-io/flat-list-mvcp' or its corresponding type declarations. ts(2307)
I inspected the node_modules/@stream-io/flat-list-mvcp
and all the files are there. I realized they are using a index.ios.tsx
and index.android.tsx
. Do I need any special configurations in my RN project to make it able to read those? I am currently using react-native: 0.63.3
. Thank you!

About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21
i’m still facing this issues, any ideas?
@Maxim-Filimonov you suggestion worked to resolve my import issues when running jest. I did not run into the new error you mentioned so that may be caused by another issue unrelated to the import itself.
@Surinder1922 & @roryabraham do you have javascript only project? I have JS non TS project and facing the same issue with jest.
I have a feeling it has something to do with missing
index.js
file.EDIT: After fiddling with the package found that
build
script has this line for some reason:rm lib/commonjs/index.js
After removing it and runningbuild
again managed to run jest without this issue. Though a new one appears:Let me take a look and get back 😃
@rgbedin fixed in v0.0.6