-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AzureMapPopup Error: TypeError: Cannot read properties of undefined (reading 'getCurrentStack') #205
Comments
In I'd start by checking why As an alternative, you can also try a custom popup implementation that doesn't rely on |
@yulinscottkang, thank for the reply. I added the GeoMapPopup file, referenced on my code above then use it in replacement for AzureMapPopup. It still has an error but it's a new one.
|
@1ky0ng, Which versions of react and react-dom are you using? |
"react": "^18.3.1", Here is a screenshot of my package.json |
I see react is listed in the |
@yulinscottkang |
I created a react control which displays an azure map, its working fine displaying only just the map and pins. But if I included a popup for the details of my pins the error occurred. Here is my code.
`
import * as React from 'react';
import { useState, useEffect } from 'react';
import { IInputs } from '../generated/ManifestTypes';
import { Stack } from '@fluentui/react/lib/Stack';
import { AzureMap, AzureMapsProvider, IAzureMapOptions, AzureMapDataSourceProvider, AzureMapLayerProvider, AzureMapFeature, AzureMapPopup } from 'react-azure-maps';
import { AuthenticationType, data, MapMouseEvent} from 'azure-maps-control';
import 'azure-maps-control/dist/atlas.min.css';
`
Here is the details of the error:
ErrorDetails.txt
The text was updated successfully, but these errors were encountered: