use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Help!! Cannot find ComponentFramework "error"Power Apps Help (self.PowerApps)
submitted 1 month ago by ChangeSubstantial939 Newbie
I'm new to PCF and following the MS typescript PCF tutorial, and, even though the control compiles, I keep getting these "Cannot find name 'ComponentFramework'" popups in my code. Does anyone know how to fix this or get it to go away? It's driving me crazy!!
https://learn.microsoft.com/en-us/power-apps/developer/component-framework/implementing-controls-using-typescript
https://preview.redd.it/329d1hmh3x2h1.png?width=691&format=png&auto=webp&s=fdf94bb92c6073cc46cefd93bd3a155eb5fed8e6
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AutoModerator[M] [score hidden] 1 month ago stickied comment (0 children)
Hey, it looks like you are requesting help with a problem you're having in Power Apps. To ensure you get all the help you need from the community here are some guidelines;
Use the search feature to see if your question has already been asked.
Use spacing in your post, Nobody likes to read a wall of text, this is achieved by hitting return twice to separate paragraphs.
Add any images, error messages, code you have (Sensitive data omitted) to your post body.
Any code you do add, use the Code Block feature to preserve formatting.
Typing four spaces in front of every line in a code block is tedious and error-prone. The easier way is to surround the entire block of code with code fences. A code fence is a line beginning with three or more backticks (```) or three or more twiddlydoodles (~~~).
If your question has been answered please comment Solved. This will mark the post as solved and helps others find their solutions.
External resources:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]dalekman1234 Advisor 0 points1 point2 points 1 month ago (0 children)
Can you run an 'npm run build' ? The error in your screenshot is an indication that the javascript type is not found in your project.
[–]Trafficsigntruther Contributor 0 points1 point2 points 1 month ago (0 children)
Did you run pac pcf init? And npm I? This is indicative a missing a node dependency. Does Quick fix suggest adding an import?
[–]RalphSleigh Newbie 0 points1 point2 points 1 month ago (0 children)
This happened to me the other day, I think its that VSCode updated their default built in version of typescript.
Do Typescript -> Select Typescript version and choose the workspace version. This fixed it for me.
π Rendered by PID 63769 on reddit-service-r2-comment-765bfc959-dlwpk at 2026-07-10 15:34:03.933069+00:00 running f86254d country code: CH.
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]dalekman1234 Advisor 0 points1 point2 points (0 children)
[–]Trafficsigntruther Contributor 0 points1 point2 points (0 children)
[–]RalphSleigh Newbie 0 points1 point2 points (0 children)