Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

How to install flipper server on linux? #5523

Closed
kuchaguangjie opened this issue Mar 19, 2024 · 5 comments
Closed

How to install flipper server on linux? #5523

kuchaguangjie opened this issue Mar 19, 2024 · 5 comments

Comments

@kuchaguangjie
Copy link

kuchaguangjie commented Mar 19, 2024

Using react-native to develop android app.
When click Open Debugger from android phone, the dev server on my linux shows:

info Launching JS debugger...
warn Attempting to debug JS in Flipper (deprecated). This requires Flipper to be installed on your system to handle the 'flipper://' URL scheme.

So, I tried to install flipper on my linux laptop, but didn't figure out how:

So, how to get a flipper executable for linux that can be run directly ?

@kuchaguangjie kuchaguangjie changed the title Question: How to install flipper server on linux How to install flipper server on linux? Mar 19, 2024
@kuchaguangjie
Copy link
Author

Ok, I've install & started flipper via yarn, but still got:

warn Attempting to debug JS in Flipper (deprecated). This requires Flipper to be installed on your system to handle the 'flipper://' URL scheme.

@kuchaguangjie
Copy link
Author

Just switched to expo, which is easier to use I think.

@yogirajc
Copy link

Just switched to expo, which is easier to use I think.

Doesn't seem as a solution to the original issue

It is still not working -
╰─ ./server.js [flipper-server] Starting flipper server with pre-bundled UI 2024-03-31T10:10:47.433Z [FileStreamRotator] Logging to: /home/abc/Downloads/package/static/flipper-server-log.out 2024-03-31T10:10:47.434Z [FileStreamRotator] Rotating file: size: 1048576 Server startup error: TypeError: (0 , flipper_common_1.addLogTailer) is not a function at initializeLogger (/home/yogirajc/Downloads/package/lib/logger.js:47:39) at async start (/home/yogirajc/Downloads/package/lib/startServer.js:109:5)

@ckyleda
Copy link

ckyleda commented Apr 7, 2024

The flipper documentation for pre-packaged Linux installs is extremely poor. From the readme:

yarn install
yarn flipper-server

The install command works with some finagling, but yarn flipper-server reports error Command "flipper-server" not found. - the install instructions packaged with the linux distribution are essentially non-functional.

node server.js crashes instantly with:

[flipper-server] Starting flipper server with pre-bundled UI
2024-04-07T11:53:54.182Z [FileStreamRotator] Logging to:  .../flipper-server/package/static/flipper-server-log.out
2024-04-07T11:53:54.183Z [FileStreamRotator] Rotating file:   size: 1048576
Server startup error:  TypeError: (0 , flipper_common_1.addLogTailer) is not a function
    at initializeLogger (.../flipper-server/package/lib/logger.js:47:39)
    at async start (.../flipper-server/package/lib/startServer.js:109:5)

Instead, try building from source.

https://github.com/facebook/flipper?tab=readme-ov-file#building-from-source

@xilin
Copy link

xilin commented Nov 21, 2024

yarn start also work for pre-package linux distribution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants