Select to view content in your preferred language

library makerjs.js starts with require. I can't import it into web AppBuilder

593
0
08-15-2023 06:43 AM
MichaelLev
Frequent Contributor

I develop custom widgets on ESRI WEB AppBuilder (developer edition)

I want to use the library "maker.js" for building DXF format files.

The library url is either https://maker.js.org/target/js/browser.maker.js 

it is also in https://cdn.jsdelivr.net/npm/makerjs@0/target/js/browser.maker.js 

The library starts with "require" and maybe this is the reason I failed to import it -

I tried doing according to https://developers.arcgis.com/web-appbuilder/sample-code/add-a-third-party-library.htm and also according to https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-import-javascript-lib... but it all failed.

Help will be greatly appreciated.

Tags (3)
0 Replies