tslib not found
See original GitHub issueIssue 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
fromC:\Users\ASUS\Apps\EvdeBakim\node_modules\react-native-gifted-chat\lib\Avatar.js
: Moduletslib
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:
- Created 4 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi guys, Sorry about that, I’ve just changed the TS config to not have a require dependency to
tslib
. Please test the new version0.9.4
. ThanksYou should run
npm install --save tslib