I just created new react-native project and installed gifted-chat. But I'm getting the following error while trying to run project on windows&android emulator.
error: bundling failed: Error: Unable to resolve module
tslibfromC:\Users\ASUS\Apps\EvdeBakim\node_modules\react-native-gifted-chat\lib\Avatar.js: Moduletslibdoes not exist in the Haste module map
I tried already to remove node_modules and npm install again. Thanks for the great module and any help in advance.
npm install react-native-gifted-chat --save
react-native run-android
Gifted Chat screen!
+1
You should run npm install --save tslib
@dnolbon thanks for the answer. It solved the issue.
Just wondering, why this wasn't an issue before and happened with latest version? is it a new dependency for the gifted-chat?
Hi guys,
Sorry about that, I've just changed the TS config to not have a require dependency to tslib.
Please test the new version 0.9.4.
Thanks
@xcarpentier thanks for quick fix.
Most helpful comment
Hi guys,
Sorry about that, I've just changed the TS config to not have a require dependency to
tslib.Please test the new version
0.9.4.Thanks