Skip to content

Cannot embed the library to project #35

Answered by roerohan
k2465 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! First of all thank you so much for this useful integration library for React :) I'm having a little issue embedding this in my project. What I did is just npm install react-vnc and then pasted the code in the README

import React from 'react';
import { VncScreen } from 'react-vnc';

function App() {
  return (
    <VncScreen
      url='ws://your-vnc-url.com'
      scaleViewport
      background="#000000"
      style={{
        width: '75vw',
        height: '75vh',
      }}
      ref={ref}
    />
  );
}

export default App;

But I'm getting this:

I did a lot of tests with the package.json file, I did build the library and tried to embed it, plus a lot of other tests but I didn't g…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@roerohan
Comment options

@roerohan
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by roerohan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants