microsoft / microsoft/PowerApps-Samples
VSCode gives error ts(2503) on the ComponentFramework namespace
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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