Select to view content in your preferred language

Deploying custom widget to Portal

441
3
Jump to solution
02-21-2026 12:19 PM
clc
by
Regular Contributor

I had to modify one of my custom widget that I wrote 2 years ago. It runs fine in Experience Builder Developer edition 1.19. But I cannot make it work in my server.

First I could not find a dist-prod folder. After some searching I realized that I needed now to run: npm run build:for-download which creates a dist-download folder.

Then I copy my widget from this dist-download folder to my wwwroot directory (where the old one was). When I run the new widget in my experience I got the following error:

Cannot read properties of undefined (reading '__set_webpack_public_path__')

Any suggestions on what is happening? Thanks

1 Solution

Accepted Solutions
JeffreyThompson2
MVP Frequent Contributor

https://developers.arcgis.com/experience-builder/guide/release-versions/

Actually that is the correct solution, in order for a Custom Widget to run in Enterprise, it must be compiled in a compatible version of Developer Edition. Currently, there is no compatible Enterprise version with 1.19.

GIS Developer
City of Arlington, Texas

View solution in original post

3 Replies
clc
by
Regular Contributor

Not an ideal solution, but I put my new code in Experience Builder Developer edition 1.15 and run: npm run build:prod. Using this build works.

JeffreyThompson2
MVP Frequent Contributor

https://developers.arcgis.com/experience-builder/guide/release-versions/

Actually that is the correct solution, in order for a Custom Widget to run in Enterprise, it must be compiled in a compatible version of Developer Edition. Currently, there is no compatible Enterprise version with 1.19.

GIS Developer
City of Arlington, Texas
clc
by
Regular Contributor

Thanks a lot for reassuring

0 Kudos