question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

esri_geometry__WEBPACK_IMPORTED_MODULE_3__.projection is undefined

See original GitHub issue

I am trying to use the esri/geometry/projection module:

import {SpatialReference, projection} from "esri/geometry";


polygon.geometry = projection.project(polygon.geometry, SpatialReference.WGS84);

Getting error : Uncaught TypeError: esri_geometry__WEBPACK_IMPORTED_MODULE_3__.projection is undefined

FYI:

  • based on comment on issue #8 , I have verified my webpack config already have node globals:
// webpack.config.js
  node: {
    process: false,
    global: false,
    fs: "empty"
  }
  • I am using Version: 4.17

Any guidance will be helpful.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dasacommented, Mar 19, 2021
0reactions
apalejacommented, Mar 20, 2021

@dasa Thanks for pointing me to the right direction it worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Esri JS-API 4.13, Webpack, imported classes show up undefined
We are using roughly 50 classes from different packages, but five classes show up undefined, these are the failing imports: import watchUtils ...
Read more >
Build with ES modules | ArcGIS Maps SDK for JavaScript 4.25
The ArcGIS Maps SDK for JavaScript 's ES modules are available for local ... import import * as projection from "@arcgis/core/geometry/projection";.
Read more >
webpack imported module is not a constructor - Stack Overflow
For me, this error was caused by importing through index files. I had multiple directories with their index.ts files that exported all the...
Read more >
@arcgis/webpack-plugin - npm
Uses a lightweight AMD loader during the Webpack build process to resolve module paths. The AMD loader is not used in the output...
Read more >
Untitled
2 Jun 08, 2021 · Folium makes it easy to visualize data that's been manipulated in Python, on an interactive Leaflet map. engines....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found