question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version 1.4.4 || Uncaught ReferenceError: jsVectorMap is not defined

See original GitHub issue

Barebones project and trying to use the package. Getting this in console:

Uncaught ReferenceError: jsVectorMap is not defined
    at Object.3r67O ((index):2496:1)
    at newRequire ((index):89:24)
    at localRequire ((index):101:14)
    at Object.5HwUs.lodash/range ((index):490:16)
    at newRequire ((index):89:24)
    at localRequire ((index):101:14)
    at Object.fUiC5../app.js ((index):480:14)
    at newRequire ((index):89:24)
    at (index):138:5
    at (index):161:3

3r67O @ (index):2496
newRequire @ (index):89
localRequire @ (index):101
5HwUs.lodash/range @ (index):490
newRequire @ (index):89
localRequire @ (index):101
fUiC5../app.js @ (index):480
newRequire @ (index):89
(anonymous) @ (index):138
(anonymous) @ (index):161

Downgrading to 1.3.3 worked, but what might be the problem?

Importing like so:

import 'jsvectormap';
import 'jsvectormap/dist/maps/world.js';

const map = new jsVectorMap({
  selector: '#map',
  map: 'world',
});

Installed via npm. Node version 14.19.0.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
themustafaomarcommented, Feb 21, 2022

@rushenn Gonna publish a new version today which fixes the issue.

1reaction
Mgrmjpcommented, Feb 18, 2022

That didn’t seem to help either. 😂

Maybe it’s something on my end. 🤷🏻‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

jVectorMap error: "jvm is not defined" - Stack Overflow
I was using a js file from cloudflare CDN for jvactormap library version 2.0.4, was not working. I replaced it with a local...
Read more >
jvectormap uncaught referenceerror - jQuery Forum
hey guys, I have been trying to get this plugin working for hours and can't seem to do so. I am fairly new...
Read more >
How to fix "Uncaught ReferenceError: x is not defined" in ...
JS Casts 04 - How to fix " Uncaught TypeError: x is not a function " in JavaScript.Visit https://javascriptcasts.com/episodes/04 for a summary ...
Read more >
Uncaught ReferenceError $ is not defined - YouTube
The video shows how to correct the " Uncaught ReferenceError : $ is not defined "#WEB_DEVELOPMENT.
Read more >
gmail | A Pythonic interface for Google Mail | Email library - kandi
Implement gmail with how-to, Q&A, fixes, code snippets. kandi ratings - High support, No Bugs, No Vulnerabilities. Permissive License, Build available.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found