Comments (8)
It is working perfectly, I think this issue can be closed
from react-vnc-display.
What are you seeing in the terminal. Also how are you importing the component?
from react-vnc-display.
What I am seeing is issue is the following:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
And I was creating a simple react-app, so I am importing like
import {VncDisplay} from 'react-vnc-display'
class App extends Component {
render(){
return(
<VncDisplay url="testingroute.net:1234/?password=guest" />
)
}
}
In the older version 1.0.5 was working fine but in order to get it work for me, I had do was
import VncDisplay from 'react-vnc-display/build/VncDisplay'
from react-vnc-display.
Does import VncDisplay from 'react-vnc-display'
work?
from react-vnc-display.
I had the same issue with it
from react-vnc-display.
Looking into it.
from react-vnc-display.
Ok, the following should work:
import VncDisplay from 'react-vnc-display';
// or
const VncDisplay = require('react-vnc-display').default;
I'll update the docs.
from react-vnc-display.
I've also published [email protected]
since it was actually a breaking change.
from react-vnc-display.
Related Issues (10)
- WebSocket connection to 'ws://xxx.xxx.x.x:5901/' failed: HOT 2
- Clipboard data
- Client instantly disconnects from VNC server HOT 3
- Error during WebSocket handshake: Unexpected response code: 200
- Width/height is not respected
- Update componentWillUpdate to componentDidUpdate
- Add a password prop
- VncDisplay url configuration doesn't seems to be working | Please provide some sample HOT 1
- Installation issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-vnc-display.