Cannot find module esri/geometry/Point

1298
5
Jump to solution
09-07-2022 02:43 AM
dylanamaro
New Contributor II

Hello,

I'm currently testing Experience Builder and trying to develop my own widget. I needed to install Experience Builder offline to use it and now I can't use the esri library.

dylanamaro_0-1662543660344.png

Do you have any solution to help me ?

Thank you

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DougLogsdon2
New Contributor III

Try adding the jimu-arcgis dependency in your manifest:

WidgetManifest

There may also be an issue loading your typescript definitions (VS Code maxes out scanned files). A previous solution was to modify the tsconfig.json file:

Previous Solution

Good luck!

View solution in original post

0 Kudos
5 Replies
DougLogsdon2
New Contributor III

Try adding the jimu-arcgis dependency in your manifest:

WidgetManifest

There may also be an issue loading your typescript definitions (VS Code maxes out scanned files). A previous solution was to modify the tsconfig.json file:

Previous Solution

Good luck!

0 Kudos
dylanamaro
New Contributor II

Thanks !!

I already added the dependency before. So I added all this files to the exclude part and it worked for me !

Thanks you !

0 Kudos
Nadir_Hussain
New Contributor III
can you show me the sample.i facing same problem.below is my exclude
{
  "name": "simple",
  "label": "Simple",
  "type": "widget",
  "version": "1.12.0",
  "exbVersion": "1.12.0",
  "dependency":" jimu-arcgis, esri/geometry/Point",
  "author": "Esri R&D Center Beijing",
  "description": "",
  "copyright": "",
  "properties": {},
  "translatedLocales": [  "en"  ],
  "defaultSize": {
    "width": 800,
    "height": 500
  }
}
please help.
i m stuck here.i m using 1.12 of experience builder.
0 Kudos
JeffreyThompson2
MVP Regular Contributor
  1. In manifest.json, dependencies should be in an array like this  "dependency": [ "jimu-arcgis" ],
  2. API components should be called from within the widget.tsx where they are needed like import Point from 'esri/geometry/Point';

 

GIS Developer
City of Arlington, Texas
0 Kudos
dylanamaro
New Contributor II

The 2nd solution from DougLogsdon2 worked for me. you need to update the tsconfig.json file

"exclude": [
    "node_modules",
    "arcgis-js-api",
    "dist",
    "__mocks__",
    "jest-systemjs-transformer.js",
    "jest.config.js",
    "jimu-for-test",
    "webpack.config.js",
    "webpack"
  ]
0 Kudos