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

problem adding custom widget #227

Open
metalbea opened this issue Nov 19, 2020 · 4 comments
Open

problem adding custom widget #227

metalbea opened this issue Nov 19, 2020 · 4 comments
Labels

Comments

@metalbea
Copy link

Hello,

I am using React with typescript.
I want to use a custom created widget and I am following this tutorial but when I run my application the custom widget isn't rendered.
However, the weird part is: when I run my website with a compile error due to a syntax error in CustomWidget.ts, fix the error and hotreload it, the custom widget is displayed on my website but disappears again when I reload it.

I probably think it would be easier if I post my code as well but it has almost 100 lines so I'm not sure if I should paste it in my question as well

@tsv2013
Copy link
Member

tsv2013 commented Nov 23, 2020

Could you share a minimal live sample illustrating the issue?

@metalbea
Copy link
Author

Could you share a minimal live sample illustrating the issue?

how should I do that, screenrecord it?

@tsv2013
Copy link
Member

tsv2013 commented Dec 1, 2020

Share a minimal react application illustrating the issue or a CodeSandbox live sample.
You can use this one as a staring point - https://codesandbox.io/s/crazy-rain-3wqj7?file=/src/customwidget.js
It works ok for me.

@metalbea
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants