You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, I'm trying to add a world map as a component to my vue3 project (New to vue and js!).
I've npm installed 'd3' and 'topojson' and used the datamap script locally.
The app.vue looks like the following:
ERROR Failed to compile with 1 error
/.../public/datamaps.world.hires.min.js
5:38 error 'optionsValues' is not defined no-undef
125:19 error 'c' is defined but never used no-unused-vars
148:13 error 'a' is defined but never used no-unused-vars
148:16 error 'b' is defined but never used no-unused-vars
284:31 error 'a' is defined but never used no-unused-vars
342:33 error 'b' is defined but never used no-unused-vars
408:5 error 'Datamaps' is not defined no-undef
409:118 error 'hoverover' is not defined no-undef
12253:10 error Do not access Object.prototype method 'hasOwnProperty' from target object no-prototype-builtins
12293:132 error 'define' is not defined no-undef
12293:145 error 'define' is not defined no-undef
✖ 11 problems (11 errors, 0 warnings)
I have tested the above code with different versions of datamap js files, errors are almost the same.
Is there a problem with datamaps or am i doing sth wrong?!
Thanks
The text was updated successfully, but these errors were encountered:
Hello everyone, I'm trying to add a world map as a component to my vue3 project (New to vue and js!).
I've npm installed 'd3' and 'topojson' and used the datamap script locally.
The app.vue looks like the following:
Executing the project raises following errors:
I have tested the above code with different versions of datamap js files, errors are almost the same.
Is there a problem with datamaps or am i doing sth wrong?!
Thanks
The text was updated successfully, but these errors were encountered: