ARCGIS Javascript SDK cannot deploy CLI ui-component class private methods not allowed

aaronradford
Tera Contributor

I am attempting to create a UI-Component built around the ARCGIS Javascript SDK.

 

I can get the test page to run using SNC develop --open.

 

When I try to deploy my scoped app component to ServiceNow I get errors regarding Class private methods not being allowed.

 

My scoped application for the component is set to ECMA Script 2021.

 

I have SNC version 1.1.2 and UI component 27.4.5.

Nodejs 22.16 and npm 8.5.5.

I have added "@babel/plugin-transform-private-methods" without luck.

 

Has anybody had experience getting the ARCGIS/core packages to work?

 

package.json details:

 

"engines": {
    "node": ">=22"
  },
  "module": "src/index.js",
  "dependencies": {
    "@arcgis/core": "^4.32.10",
    "@arcgis/map-components": "^4.32.14",
    "@babel/plugin-transform-private-methods": "^7.27.1",
    "@servicenow/sass-kit": "^19.8.2-ecd",
    "@servicenow/ui-core": "^24.1.1",
    "@servicenow/ui-effect-graphql": "^24.1.1",
    "@servicenow/ui-effect-http": "24.1.1",
    "@servicenow/ui-renderer-snabbdom": "^24.1.1",
    "npm": "^8.5.5",
    "path-to-regexp": "^8.2.0"
  },
  "devDependencies": {
    "@babel/runtime": "^7.27.3",
    "ajv": "^6.12.6",
    "sass": "1.53.0"
  }
0 REPLIES 0