microsoft / microsoft/PowerApps-Samples

VSCode gives error ts(2503) on the ComponentFramework namespace

Open
#812 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
2k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Both using a fresh custom component using pac pcf init and using the latest files from the microsoft/PowerApps-Samples repository gives an error on the namespace for the ComponentFramework

Building the component using the command line works fine. This is just distracting from actual errors, as you cannot see in the file tree if there is a real issue in the file or just a bug issue.

Image

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the issue by creating a fresh custom component with pac pcf init and opening it in VSCode. Compare the editor's ComponentFramework namespace diagnostic with the successful command-line build. Done means the ts(2503) error no longer appears without breaking the existing build.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.