bingmaps-react icon indicating copy to clipboard operation
bingmaps-react copied to clipboard

Error - Module not found

Open edwardkeay opened this issue 3 years ago • 7 comments

HI,

I am building a spfx react webpart and have installed using npm install bingmaps-react

I have imported using the below Image 104

Added the following into the component Image 105

however when I run gulp serve I get the follow error Image 102

Please advise a resolution or guidance

Thanks in advance

edwardkeay avatar Apr 20 '22 00:04 edwardkeay

@edwardkeay I'm happy to take a look. Is it possible to put your code in a repository so that I can take a look at it myself?

milespratt avatar Apr 20 '22 00:04 milespratt

@edwardkeay - I had the same issue but was able to fix it by installing core-js (https://www.npmjs.com/package/core-js).

byronthe123 avatar Apr 21 '22 21:04 byronthe123

@milespratt I have shared my respository with you. thanks for your help

edwardkeay avatar Apr 22 '22 00:04 edwardkeay

@edwardkeay any chance you've taken a look at @byronthe123 's suggestion?

milespratt avatar Jul 26 '22 16:07 milespratt

I was having this issue and @byronthe123's suggestion worked for me. I'm also in the SPFx environment.

What I'm finding now is that I cannot pan the map by clicking & dragging. Middle clicks and double clicks will center and zoom, but clicking & dragging does this instead: image

dwarthen-tnn avatar Aug 08 '22 17:08 dwarthen-tnn

@dwarthen-tnn would you mind sharing your code?

milespratt avatar Aug 08 '22 17:08 milespratt

@dwarthen-tnn would you mind sharing your code?

Thanks for the quick response. I just realized the problem. I had implemented a Office UI Fabric List at nearly the same time I impemented the React Bingmap and it looks like some styling on the List component replaced the click & drag functionality on the whole page. I'm all set for now.

Installing the core-js package does seem to resolve the module not found error reported here.

Thanks again :)

dwarthen-tnn avatar Aug 08 '22 17:08 dwarthen-tnn