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

初始化Cannot read property 'Embed' of undefined #3

Open
TOmANDJerryz opened this issue Jul 16, 2020 · 1 comment
Open

初始化Cannot read property 'Embed' of undefined #3

TOmANDJerryz opened this issue Jul 16, 2020 · 1 comment

Comments

@TOmANDJerryz
Copy link

页面初始化化时调用new syncit.Embed 报错
报错信息: TypeError: Cannot read property 'Embed' of undefined
代码如下:<script> import syncit from '@syncit/ui/dist/index' import '@syncit/ui/dist/style.css' import { LocalStorageTransporter } from '@syncit/transporter' export default { name: 'Test', mounted() { new syncit.Embed({ target: document.body, props: { createTransporter() { return new LocalStorageTransporter({ role: '11', uid: '22' }) } } }) } } </script>

@Yhhhhhhh
Copy link

import * as syncit from '@syncit/ui'

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

2 participants