[JavaScript] TypeError: Cannot read property 'registerType' of undefined using adaptivecard-fabric
See original GitHub issuePlatform
- JavaScript
Version of SDK
latest
Details
I was trying to style my adaptive cards using module adaptivecards-fabric as mentioned in the repo by using
ACFabric.useFabricComponents();
but Iam getting the following error
TypeError: Cannot read property ‘registerType’ of undefined
I checked the AdaptiveCard class definition in node modules and could not find any property elementTypeRegistry.
Can someone help me with this issue? Or can someone tell me if there is any other way to style adaptive cards using fabric ui?
Here is the whole stack trace:
at Object.t.useFabricComponents (Fabric.js:17)
at t.componentDidMount (ImmersiveIframe.tsx:32)
at us (react-dom.production.min.js:212)
at Tl (react-dom.production.min.js:255)
at t.unstable_runWithPriority (scheduler.production.min.js:19)
at Go (react-dom.production.min.js:122)
at wl (react-dom.production.min.js:248)
at pl (react-dom.production.min.js:239)
at react-dom.production.min.js:123
at t.unstable_runWithPriority (scheduler.production.min.js:19)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'id' of undefined ...
In my case this error occurred seemingly at random. One moment it was working, and the next moment it wasn't. Known working commits...
Read more >An error while overriding '' parameter because of 'TypeError
An error while overriding '' parameter because of 'TypeError: Cannot read property 'type' of undefined', make sure it follows JavaScript Object ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sadviramana for now the Fabric integration is not yet compatible with the AC SDK v2.0 and later. We do know this is a problem and are working to find the right people to update the Fabric integration library.
@dclaux any luck with this issue?