Skip to content
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

Error - Module not found #53

Open
edwardkeay opened this issue Apr 20, 2022 · 7 comments
Open

Error - Module not found #53

edwardkeay opened this issue Apr 20, 2022 · 7 comments

Comments

@edwardkeay
Copy link

edwardkeay commented Apr 20, 2022

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 edwardkeay changed the title Error Error - Module not found Apr 20, 2022
@milespratt
Copy link
Owner

@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?

@byronthe123
Copy link

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

@edwardkeay
Copy link
Author

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

@milespratt
Copy link
Owner

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

@dwarthen-tnn
Copy link

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

@milespratt
Copy link
Owner

@dwarthen-tnn would you mind sharing your code?

@dwarthen-tnn
Copy link

@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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants