microsoft / microsoft/AdaptiveCards

[Templating] Error creating template instance in a react component (Power Apps component framework)

Open
#9,154 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Using the "Hello word" sample provided for adaptivecards-templating

and a power app component-framework https://learn.microsoft.com/en-us/power-apps/developer/component-framework/create-custom-controls-using-pcf

the creation of the instance of the template failed with error :

TypeError: Cannot read properties of undefined (reading 'parse')\n at Template.parseInterpolatedString (webpack://pcf_tools_652ac3f36e1e4bca82eb3c1dc44e6fad/./node_modules/adaptivecards-templating/lib/template-engine.js?:221:45)\n at Template.prepare us>)

I'm not able to find a way to solve the issue

here's a sample to repro the issue : ACDataPcfSample

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked ACDataPcfSample and reproduce the failure in its Power Apps component-framework setup. Inspect the Template.parseInterpolatedString and Template.prepare entry points reported in adaptivecards-templating/lib/template-engine.js, then verify a resolution by successfully creating the template instance in the sample.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.