surveyjs / custom-widgets

The collection of custom widgets for SurveyJS: Survey Library and Survey Creator :package:
https://surveyjs.io
MIT License
79 stars 78 forks source link

problem adding custom widget #227

Open metalbea opened 4 years ago

metalbea commented 4 years ago

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 commented 4 years ago

Could you share a minimal live sample illustrating the issue?

metalbea commented 4 years ago

Could you share a minimal live sample illustrating the issue?

how should I do that, screenrecord it?

tsv2013 commented 3 years ago

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 commented 3 years ago

https://codesandbox.io/s/dry-thunder-bmnru