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

Cannot set property 'vectorMap' of undefined #76

Open
jleyforgithub opened this issue Sep 12, 2020 · 2 comments
Open

Cannot set property 'vectorMap' of undefined #76

jleyforgithub opened this issue Sep 12, 2020 · 2 comments

Comments

@jleyforgithub
Copy link

I run react vectormap on next.js after import VectorMap on component. I found this error its below.

Server Error
TypeError: Cannot set property 'vectorMap' of undefined

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack

file:///D:/Project/my-dashboard/node_modules/react-jvectormap/build/index.js (1:3002610)
Object.
file:///D:/Project/my-dashboard/node_modules/react-jvectormap/build/index.js (1:3002973)
Object.
file:///D:/Project/my-dashboard/node_modules/react-jvectormap/build/index.js (1:3049709)
e
file:///D:/Project/my-dashboard/node_modules/react-jvectormap/build/index.js (1:424)
Object.
file:///D:/Project/my-dashboard/node_modules/react-jvectormap/build/index.js (1:3002360)
e
file:///D:/Project/my-dashboard/node_modules/react-jvectormap/build/index.js (1:424)

file:///D:/Project/my-dashboard/node_modules/react-jvectormap/build/index.js (1:781)

file:///D:/Project/my-dashboard/node_modules/react-jvectormap/build/index.js (1:791)

file:///D:/Project/my-dashboard/node_modules/react-jvectormap/build/index.js (1:86)
Object.
file:///D:/Project/my-dashboard/node_modules/react-jvectormap/build/index.js (1:300)
Module._compile
internal/modules/cjs/loader.js (1138:30)
Object.Module._extensions..js
internal/modules/cjs/loader.js (1158:10)
Module.load
internal/modules/cjs/loader.js (986:32)
Function.Module._load
internal/modules/cjs/loader.js (879:14)
Module.require
internal/modules/cjs/loader.js (1026:19)
require
internal/modules/cjs/helpers.js (72:18)

@Novol1273
Copy link

Hello
You still haven't solved this problem?

@morkeleb
Copy link

This is a duplicate of #29 and the solution is most likely in that thread.

kadoshms pushed a commit that referenced this issue Oct 2, 2021
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

3 participants