Select to view content in your preferred language

Getting 'ReferenceError: crypto is not defined' when installing arcgis/core 4.29.10 in React Application

562
1
04-29-2024 04:08 PM
RoelGarcia
New Contributor III

I am trying to use the latest version of arcgis/core in React application but I am getting the below error.

RoelGarcia_0-1714431894742.png

I would appreciate any suggestions or comments.

 

Thank you so much!.

Roel

0 Kudos
1 Reply
AndyGup
Esri Regular Contributor

Hi @RoelGarcia  please provide a repro app: https://developers.arcgis.com/javascript/latest/troubleshooting/#minimal-reproducible-application. This error is likely related to webpack shimming the node crypto library. Without a repro app we can't really offer specific recommendations. You might search for "webpack crypto is not defined" on the internet for ideas.

0 Kudos