Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: null is not an object (evaluating 'FPStaticServer.start') #104

Open
codthing opened this issue Jan 19, 2021 · 6 comments
Open

Comments

@codthing
Copy link

codthing commented Jan 19, 2021

When I run server.start, I get an error

Bug

image

Code

image

Version Info

image

@dohomi
Copy link

dohomi commented Sep 21, 2021

Any solution on this error?

@shynonagons
Copy link

I was getting this error when I was trying to spin up the static server while running in Expo Go. Building for native platforms with react-native run-ios || react-native run-android solved it for me.

@dohomi
Copy link

dohomi commented Sep 30, 2021

@shynonagons how are you developing if Expo Go is not building? Maybe a custom dev-client could work?

@codthing
Copy link
Author

@dohomi
In short, I don’t use expo-system anymore, I use react-native-system.
Also, I use declare module'react-native-static-server'.

@shynonagons
Copy link

@dohomi This module uses native code, so you can't run it in Expo Go. If you need to use it in an Expo project you'll have to eject first with expo eject.

@fungmo for the types I just copied the contents of the index.d.ts file in this repo into react-native-static-server.d.ts in my project, since it doesn't seem like the release with Typescript support has been cut yet.

@danidji
Copy link

danidji commented Dec 13, 2021

I have the same problem, i'm using bare react native. I'm using react-native-fs from a module i linked in my app from an another private github project and i have the same issue when i want to start static server to launch a webview in my project.

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

No branches or pull requests

4 participants