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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting this error at ...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

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

AmbulePaul_0-1689688452996.png

AmbulePaul_2-1689689004458.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

Categories:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard