tradle / react-native-udp

node's dgram for react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing class properties transform

natinaum opened this issue · comments

Description

When i try to use react native udp to send jwt packages it always throws a "Missing class properties transform." Syntax Error. I just try to build up a basic working example, but it just fails.

OS: Linux Mint
Env: Yarn

Steps to reproduce

Steps to reproduce the behavior:

  1. setup a project with yarn
  2. try adding udp package sending via udp
  3. cry a bit
  4. ???
  5. no profit

Error code:

SyntaxError: /home/yannik/repo/webstuff/ledcontroller/node_modules/react-native-udp/src/index.js: Missing class properties transform.
  23 |   }
  24 |
> 25 |   static Socket = UdpSocket
     |   ^
  26 | }
  27 |
  28 | export default UdpSockets

My Code:

import React ,{useState,useEffect}from 'react';
import './App.css';

import dgram from 'react-native-udp';
const socket = dgram.createSocket('udp4');
socket.bind(12345);

Current behavior

Dont Work

Expected behavior

Work

Is there maybe some bad interaction known with crypto or jwt libs?
I'm just f*ing confused :/

Screenshots
If applicable, add screenshots to help explain your problem.

Relevant information

OS ?
react-native ?
react-native-udp ?

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs.

Not solved, but i think the problem is not the bib but a general depency/pre proc. Clusterfuck :)