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

Update to the guide #5

Open
nikhilrayaprolu opened this issue Jul 20, 2020 · 2 comments
Open

Update to the guide #5

nikhilrayaprolu opened this issue Jul 20, 2020 · 2 comments

Comments

@nikhilrayaprolu
Copy link

Thank you for such great library @Yuyz0112
Looks like, things started working when I follow the below structure

import {Embed, App} from '@syncit/ui';
import '@syncit/ui/dist/style.css';
import { LocalStorageTransporter } from '@syncit/transporter';

new Embed({
    target: document.body,
    props: {
        createTransporter({ role, uid }) {
            return new LocalStorageTransporter({
                role,
                uid,
            });
        },
    },
});
new App({
    target: document.body,
    props: {
        createTransporter({ role, uid }) {
            return new LocalStorageTransporter({
                role,
                uid,
            });
        },
    },
});

Or else it raises syncit undefined or Embed Undefined.

Also how to change the language from Mandarin to English?

@saurabhshahare
Copy link

Thank you for such great library @Yuyz0112
Looks like, things started working when I follow the below structure

import {Embed, App} from '@syncit/ui';
import '@syncit/ui/dist/style.css';
import { LocalStorageTransporter } from '@syncit/transporter';

new Embed({
    target: document.body,
    props: {
        createTransporter({ role, uid }) {
            return new LocalStorageTransporter({
                role,
                uid,
            });
        },
    },
});
new App({
    target: document.body,
    props: {
        createTransporter({ role, uid }) {
            return new LocalStorageTransporter({
                role,
                uid,
            });
        },
    },
});

Or else it raises syncit undefined or Embed Undefined.

Also how to change the language from Mandarin to English?

@nikhilrayaprolu able to start the app? for me tons of errors with packages (using windows). Probably missing something, can you share the steps to follow to get started with this?

@Juice10
Copy link
Contributor

Juice10 commented Mar 13, 2023

Hi @nikhilrayaprolu, thanks for submitting this issue. The syncit project got moved to the rrweb-io GitHub org, and this repo will get archived soon. Would you mind re-submitting your issue there if it is still relevant for the new 1.0.1 (rrweb 2.0 based) syncit?

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

3 participants