Skip to main content
Community site session details

Community site session details

Session Id : AydFasyFOJTwk5qam2fvED
Power Apps - Power Apps Pro Dev & ISV
Answered

Resolving node_modules CSS dependencies in PowerApps Custom Control

Like (0) ShareShare
ReportReport
Posted on 12 Aug 2019 06:19:05 by 6

I am trying to build a power apps custom control using ckeditor v5. First step I did was to include

"@ckeditor/ckeditor5-build-classic": "^12.3.1",
 using npm and resolve in my controls base file using  
const ClassicEditor = require('@ckeditor/ckeditor5-build-classic');
 
The above settings work and my control renders fine. I although have one other depdency to include fonts package. For this we have to seperately install 
"@ckeditor/ckeditor5-font": "^11.2.1"
and reference in index.ts -
const Font = require('@ckeditor/ckeditor5-font/src/font');
 
When compiling the package, it throws CSS exceptions 
ERROR in ./node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css 6:0
Module parse failed: Unexpected character '@' (6:0)
You may need an appropriate loader to handle this file type.
| */
|
> @import "../../mixins/_unselectable.css";
|
| .ck.ck-list {
@ ./node_modules/@ckeditor/ckeditor5-ui/src/list/listview.js 13:0-46
@ ./node_modules/@ckeditor/ckeditor5-ui/src/dropdown/utils.js
@ ./node_modules/@ckeditor/ckeditor5-font/src/fontsize/fontsizeui.js
@ ./node_modules/@ckeditor/ckeditor5-font/src/fontsize.js
@ ./node_modules/@ckeditor/ckeditor5-font/src/font.js
@ ./HtmlEditorControl/index.ts
 
Appreciate all the help. Thanks.
  • R1449A Profile Picture
    52 on 21 Jan 2021 at 14:50:52
    Re: Resolving node_modules CSS dependencies in PowerApps Custom Control

    May I clone your ckeditor solution? 

  • jaguil3ra Profile Picture
    81 on 12 Aug 2019 at 18:00:56
    Re: Resolving node_modules CSS dependencies in PowerApps Custom Control

    Nice!! Smiley Happy


    @moizmh wrote:

    Thanks, I thought so when i checked your implementatio of rich text editor using Quill.




     

  • moizmh Profile Picture
    6 on 12 Aug 2019 at 16:57:34
    Re: Resolving node_modules CSS dependencies in PowerApps Custom Control

    Thanks, I thought so when i checked your implementatio of rich text editor using Quill.

  • Verified answer
    jaguil3ra Profile Picture
    81 on 12 Aug 2019 at 13:40:30
    Re: Resolving node_modules CSS dependencies in PowerApps Custom Control

    The PCF in this moment doesn't compile the files ".css", you need remove all lines where use @import with ".css" and then add these in the manifest. Example:

    <css path="../node_modules/ckeditor/mixins/_unselectable.css" order="1" />




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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading started