question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[JavaScript] TypeError: Cannot read property 'registerType' of undefined using adaptivecard-fabric

See original GitHub issue

Platform

  • 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
dclauxcommented, Aug 17, 2020

@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.

1reaction
michal-turzynskicommented, Mar 27, 2021

@dclaux any luck with this issue?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found