web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : W7apDI/SnUgMrhaM2NKTVh
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Getting this error at runtime - 'XrmEnum' is not defined while building PCF Project

Like (0) ShareShare
ReportReport
Posted on 18 Jul 2023 14:21:48 by

Hi All,

 

I am getting this below error while running npm run build command for PCF Project.

AmbulePaul_0-1689689981147.png

AmbulePaul_1-1689689981148.png

 

I am using XrmEnum.FormType in pcf project. I have installed it using below command  - 

npm install --save @types/xrm

 

This XrmEnum is present in @types/Xrm/index.d.ts file in node_modules but at run time I think it is not finding that file and it is giving me an error.

 

How to resolve such kind of error. Please help!

 

Thanks,

Paul

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete