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

Zeroconf.scan_TypeError: Cannot read property 'scan' of null #183

Open
6ase opened this issue Apr 1, 2024 · 5 comments
Open

Zeroconf.scan_TypeError: Cannot read property 'scan' of null #183

6ase opened this issue Apr 1, 2024 · 5 comments

Comments

@6ase
Copy link

6ase commented Apr 1, 2024

Good day!

const zeroconf = new Zeroconf();
zeroconf.scan('http', 'tcp', 'local.');

When i try to call . scan i have an error :

TypeError: Cannot read property 'scan' of null

Using Expo, try to do in Expo Go and on Production build. Can`t understand why that happend... Anyone can help?
Also if i console.log(zeroconf) before scan i see the next object:

LOG {"_dListeners": {"error": {"context": undefined, "listener": [Function anonymous], "remove": [Function remove]}, "found": {"context": undefined, "listener": [Function anonymous], "remove": [Function remove]}, "published": {"context": undefined, "listener": [Function anonymous], "remove": [Function remove]}, "remove": {"context": undefined, "listener": [Function anonymous], "remove": [Function remove]}, "resolved": {"context": undefined, "listener": [Function anonymous], "remove": [Function remove]}, "start": {"context": undefined, "listener": [Function anonymous], "remove": [Function remove]}, "stop": {"context": undefined, "listener": [Function anonymous], "remove": [Function remove]}, "unpublished": {"context": undefined, "listener": [Function anonymous], "remove": [Function remove]}}, "_events": {}, "_eventsCount": 0, "_maxListeners": undefined, "_publishedServices": {}, "_services": {}},

@TheYigidOS
Copy link

same issue...

@hxk1633
Copy link

hxk1633 commented Sep 29, 2024

I have the same issue too

@6ase
Copy link
Author

6ase commented Nov 2, 2024

No one have design? :)

@TheYigidOS
Copy link

i solved, but not with expo, i made with bare react native project,

@boiboif
Copy link

boiboif commented Jan 7, 2025

Same issue with expo. It seems worked in bare react native 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