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.

How to install new modules after setup?

See original GitHub issue

First of all thank you for your work! I followed your ā€œgetting startedā€ guide and worked perfectly, but now Iā€™m having quite a big issue on almost all new libraries I want to addā€¦ Iā€™m writing the application in React Native and having it transformed for web too and it works well until I install a library (For example the Bottom sheet you recommend).

I install the new library, launch my application using react-app-rewired start and then, even if flow plugin, preset-env etc. are there I get errors like this one:

.../workspace/Name/node_modules/react-native-gesture-handler/DrawerLayout.js: Support for the experimental syntax 'flow' isn't currently enabled (30:8):

which suggests webpack isnā€™t setup correctly; I then noticed in the config-overrides.js that you want babel presets/plugins only to be ran on react-native-vector-icons and react-native-safe-area-view modules. To be clear (as described here):

....
test: /\.js$/,
exclude: /node_modules[/\\](?!react-native-vector-icons|react-native-safe-area-view)/,
...

Whenever I add my new library there, I then get another compilation error:

./node_modules/react-native-gesture-handler/GestureButtons.js 244:65
Module parse failed: Unexpected token (244:65)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|           rest = _objectWithoutProperties(_this$props2, ["children", "style"]);
| 
>     const resolvedStyle = _reactNative.StyleSheet.flatten(style ?? {});
| 
|     return /*#__PURE__*/_react.default.createElement(BaseButton, _extends({}, rest, {

react: 16.13.1 react-native: 0.63.2 react-native-paper: 4.0.1 react-native-vector-icons: 7.0.0

Any suggestion? Thank you very much and sorry if itā€™s a noob question

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
kuasha420commented, Nov 21, 2020

@RichardLindhout React Navigation Works SURPRISINGLY well on react native web, animation, url and everything. I was very surprised on how well it works.

0reactions
github-actions[bot]commented, Jan 21, 2021

Hello šŸ‘‹, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Manually Install Python Packages - ActiveState
Navigate to the directory in which you've extracted the package. If the package includes its own set of installation instructions, they shouldĀ ...
Read more >
Installing Python Modules (Legacy version) ā€” Python 3.11.1 ...
If all these things are true, then you already know how to build and install the modules you've just downloaded: Run the command...
Read more >
Installing and Importing Modules in Python 3 - Linode
Install the new Python module using the command pip install <module-name> . The following example demonstrates how to install the ffmpeg-pythonĀ ...
Read more >
How to install modules with PIP (and fix it when it fails) - Medium
Installing modules to python is painfully easy. Simply open up your terminal: Windows ā€” Command Prompt (CMD); MacOS ā€” Terminal; Linux ā€” TerminalĀ ......
Read more >
HOWTO: Install your own Python packages
To build the package, we will want to first create a temporary environment variable to aid in installation. We'll call INSTALL_DIR . export...
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