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 Apps / Dynamics 365 CRM PCF C...
Power Apps
Unanswered

Dynamics 365 CRM PCF Control Error .. require is not defined

(0) ShareShare
ReportReport
Posted on by

Dear all, 

 

I am trying to build a PCF control based on the below repo 


GitHub - lblod/frontend-embeddable-notule-editor: Frontend for an embeddable variant of the editor.

The usage of this control in any html page has given below 

Edit fiddle - JSFiddle - Code Playground

 

So, in my constructor i have loaded the js files required for this control like below 

    constructor()
    {
        this.loadScript("https://unpkg.com/svgxuse@1.2.6/svgxuse.js", () => {
            // This callback will be executed when the second script is loaded
            // You can continue to chain additional script loading here
        this.initializeControl();
      });
      });
    });
    });

    loadScript(scriptUrl: string, callback: () => void) {
      const scriptElement = document.createElement("script");
      scriptElement.src = scriptUrl;
      scriptElement.onload = callback;
      document.head.appendChild(scriptElement);
  }
 
However, when i try to initialize the control in init method like below i am getting the error require is not defined

     let App = require('frontend-embeddable-notule-editor/app').default.create({
           autoboot: false,
           name: 'frontend-embeddable-notule-editor'
         });
Could you please help me in this control converting to a pcf control
 
 
I have the same question (0)

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard