Select to view content in your preferred language

unable to access esri/Graphic

513
2
Jump to solution
10-28-2022 08:17 AM
abdulsaheeddurodola
Emerging Contributor

Hi All,

I am developing an app that should automatically create lines opn the map based on user input. This lines are paths from a a point x to a point y. Here is my code

        require(["esri/config","esri/Map", "esri/views/MapView",
    "esri/layers/GraphicsLayer"
    ,"esri/layers/FeatureLayer","esri/Graphic"],function(esriConfig,Map, MapView, GraphicsLayer,FeatureLayer, Graphic)

 

and this is my error

https://js.arcgis.com/3.41/esri/Graphic.js net::ERR_ABORTED 404

This works when i am using plain javascript instead of WAB

 

0 Kudos
1 Solution

Accepted Solutions
BrianLeroux
Frequent Contributor

Try esri/graphic with lowercase G.

View solution in original post

0 Kudos
2 Replies
BrianLeroux
Frequent Contributor

Try esri/graphic with lowercase G.

0 Kudos
abdulsaheeddurodola
Emerging Contributor

Thank you. That was very helpfull

0 Kudos