question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue Description

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 tslib from C:\Users\ASUS\Apps\EvdeBakim\node_modules\react-native-gifted-chat\lib\Avatar.js: Module tslib does 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.

Steps to Reproduce / Code Snippets

npm install react-native-gifted-chat --save react-native run-android

Expected Results

Gifted Chat screen!

Additional Information

  • Nodejs version: v10.4.0
  • React version: 16.8.3
  • React Native version: 0.59.9
  • react-native-gifted-chat version: ^0.9.3
  • Platform(s) (iOS, Android, or both?): Android
  • TypeScript version: No TypeScript

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
xcarpentiercommented, Jun 9, 2019

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

3reactions
dnolboncommented, Jun 8, 2019

You should run npm install --save tslib

Read more comments on GitHub >

github_iconTop Results From Across the Web

"This syntax requires an imported helper but module 'tslib ...
ts:5:1 - error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. While lib/index.js is correctly compiled:
Read more >
This syntax requires an imported helper but module 'tslib ...
To solve the error "This syntax requires an imported helper but module 'tslib' cannot be found", install tslib by running npm install -D...
Read more >
TypeScript error “TS2354: This syntax requires an ... - GitHub
js:3:8 - error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. 3 const {ArgumentParser} = require('argparse') ...
Read more >
tslib - npm
Runtime library for TypeScript helper functions. Latest version: 2.4.1, last published: 2 months ago. Start using tslib in your project by ...
Read more >
How to fix Visual Studio throwing a "This syntax requires an ...
Fixing “This syntax requires an imported helper named '__spreadArray' which does not exist in 'tslib'. Consider upgrading your version of 'tslib ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found